Skip to content
Commit 36991ca6 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

blk-mq: protect debugfs_create_files() from failures



If debugfs were to return a non-NULL error for a debugfs call, using
that pointer later in debugfs_create_files() would crash.

Fix that by properly checking the pointer before referencing it.

Reported-by: default avatarMichal Hocko <mhocko@kernel.org>
Reported-and-tested-by: default avatar <syzbot+b382ba6a802a3d242790@syzkaller.appspotmail.com>
Reported-by: default avatarTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2c1cf00e
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