projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76e6386
)
hwmon: (ibmpex.c) fix NULL dereference
author
Adrian Bunk
<bunk@kernel.org>
Wed, 17 Oct 2007 19:29:02 +0000
(21:29 +0200)
committer
Mark M. Hoffman
<mhoffman@lightlink.com>
Thu, 8 Nov 2007 13:42:46 +0000
(08:42 -0500)
Don't dereference "data" when we know for sure it's NULL.
Spotted by the Coverity checker.
Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
drivers/hwmon/ibmpex.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/hwmon/ibmpex.c
b/drivers/hwmon/ibmpex.c
index c462824ffccfe9936d0f6236dc8788a3d5d2dacf..e14ce3d79d122ad7e08b3e4dfd2ea9b7fed52996 100644
(file)
--- a/
drivers/hwmon/ibmpex.c
+++ b/
drivers/hwmon/ibmpex.c
@@
-457,7
+457,7
@@
static void ibmpex_register_bmc(int iface, struct device *dev)
data = kzalloc(sizeof(*data), GFP_KERNEL);
if (!data) {
printk(KERN_ERR DRVNAME ": Insufficient memory for BMC "
- "interface
%d.\n", data->interface
);
+ "interface
.\n"
);
return;
}