Commit b2a0e035 authored by Peng Wang's avatar Peng Wang Committed by Yang Yingliang
Browse files

kernfs: fix potential null pointer dereference



mainline inclusion
from mainline-5.4-rc1
commit 2fd60da4
category: bugfix
bugzilla: 21637
CVE: NA

---------------------------

Get root safely after kn is ensureed to be not null.

Signed-off-by: default avatarPeng Wang <rocking@whu.edu.cn>
Acked-by: default avatarTejun Heo <tj@kernel.org>
Link: https://lore.kernel.org/r/20190708151611.13242-1-rocking@whu.edu.cn


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avataryu kuai <yukuai3@huawei.com>
Reviewed-by: default avatarzhangyi (F) <yi.zhang@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 82552e86
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment