misc: cxl: Fix possible null pointer dereference
authorzhong jiang <zhongjiang@huawei.com>
Thu, 4 Oct 2018 05:02:53 +0000 (13:02 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 Oct 2018 10:15:03 +0000 (12:15 +0200)
commit3dac3583bf1a61db6aaf31dfd752c677a4400afd
tree9df66dbd15bf17fc7376e5c5ddf6b855aba1cf7a
parente862faa968400206aae3bf8de0d4beb766498657
misc: cxl: Fix possible null pointer dereference

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>
drivers/misc/cxl/guest.c