From: Guenter Roeck Date: Sat, 24 Sep 2011 22:27:04 +0000 (-0700) Subject: hwmon: (coretemp) Avoid leaving around dangling pointer X-Git-Tag: v3.1-rc9~7^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20ecb499f64a7e8e7fe03f6098ab25c71b7a6481;p=pandora-kernel.git 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 Signed-off-by: Guenter Roeck Acked-by: Jean Delvare --- Reading git-diff-tree failed