mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
hwmon: (ibmpex.c) fix NULL dereference
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>
This commit is contained in:
parent
76e63860da
commit
9be484446c
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue