diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-01-30 12:37:35 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-01-30 12:39:49 +0100 |
commit | 37ea7b630ae5cdea4e8ff381d9d23abfef5939e6 (patch) | |
tree | fd3836565f8255135394477d1fcc9d4fb5771286 /drivers/mtd/tests | |
parent | debugfs: return error values, not NULL (diff) | |
download | linux-37ea7b630ae5cdea4e8ff381d9d23abfef5939e6.tar.xz linux-37ea7b630ae5cdea4e8ff381d9d23abfef5939e6.zip |
debugfs: debugfs_lookup() should return NULL if not found
Lots of callers of debugfs_lookup() were just checking NULL to see if
the file/directory was found or not. By changing this in ff9fb72bc077
("debugfs: return error values, not NULL") we caused some subsystems to
easily crash.
Fixes: ff9fb72bc077 ("debugfs: return error values, not NULL")
Reported-by: syzbot+b382ba6a802a3d242790@syzkaller.appspotmail.com
Reported-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: Omar Sandoval <osandov@fb.com>
Cc: Jens Axboe <axboe@fb.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/mtd/tests')
0 files changed, 0 insertions, 0 deletions