Skip to content
Commit 37ea7b63 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

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 ff9fb72b
("debugfs: return error values, not NULL") we caused some subsystems to
easily crash.

Fixes: ff9fb72b ("debugfs: return error values, not NULL")
Reported-by: default avatar <syzbot+b382ba6a802a3d242790@syzkaller.appspotmail.com>
Reported-by: default avatarTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: Omar Sandoval <osandov@fb.com>
Cc: Jens Axboe <axboe@fb.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ff9fb72b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment