projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e862faa
)
misc: cxl: Fix possible null pointer dereference
author
zhong jiang
<zhongjiang@huawei.com>
Thu, 4 Oct 2018 05:02:53 +0000
(13:02 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 11 Oct 2018 10:15:03 +0000
(12:15 +0200)
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
patch
|
blob
|
history
diff --git
a/drivers/misc/cxl/guest.c
b/drivers/misc/cxl/guest.c
index 3bc0c15d4d85b7f16e8ad10fa00847c17ee5dc7e..5d28d9e454f5299bd3113c30807679cfebe2c6b6 100644
(file)
--- a/
drivers/misc/cxl/guest.c
+++ b/
drivers/misc/cxl/guest.c
@@
-1018,8
+1018,6
@@
err1:
void cxl_guest_remove_afu(struct cxl_afu *afu)
{
- pr_devel("in %s - AFU(%d)\n", __func__, afu->slice);
-
if (!afu)
return;