]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
misc: cxl: Fix possible null pointer dereference
authorzhong jiang <zhongjiang@huawei.com>
Thu, 4 Oct 2018 05:02:53 +0000 (13:02 +0800)
committerKhalid Elmously <khalid.elmously@canonical.com>
Thu, 28 Nov 2019 04:59:27 +0000 (23:59 -0500)
commit9b63fd32c65621b55adb92c2a7ba88f5b88199cc
treec7874c9c5e5cfc8c86ff8c370d1994e7c10efafd
parenta980ba4407096e498f93b029d836b24f6a1ec4c6
misc: cxl: Fix possible null pointer dereference

BugLink: https://bugs.launchpad.net/bugs/1854216
[ Upstream commit 3dac3583bf1a61db6aaf31dfd752c677a4400afd ]

It is not safe to dereference an object before a null test. It is
not needed and just remove them. Ftrace can be used instead.

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Acked-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Acked-by: Frederic Barrat <fbarrat@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/misc/cxl/guest.c