summaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorGuenter Roeck <guenter.roeck@ericsson.com>2011-09-25 00:27:04 +0200
committerGuenter Roeck <guenter.roeck@ericsson.com>2011-09-28 17:19:21 +0200
commit20ecb499f64a7e8e7fe03f6098ab25c71b7a6481 (patch)
tree6cd20d373c279a92acb8917c2945c6132ce66486 /drivers/spi
parenthwmon: (coretemp) Fixup platform device ID change (diff)
downloadlinux-20ecb499f64a7e8e7fe03f6098ab25c71b7a6481.tar.xz
linux-20ecb499f64a7e8e7fe03f6098ab25c71b7a6481.zip
hwmon: (coretemp) Avoid leaving around dangling pointer
Storing the struct temp_data pointer allocated from create_core_data() when returning an error has the potential of leaving around a pointer to freed memory. Reset it to NULL for error returns. Reported-by: Jan Beulich <jbeulich@suse.com> Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com> Acked-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/spi')
0 files changed, 0 insertions, 0 deletions