From: David Woodhouse Date: Thu, 14 Mar 2013 13:30:20 +0000 (+0000) Subject: hwmon: (pmbus) Fix krealloc() misuse in pmbus_add_attribute() X-Git-Tag: v3.9-rc3~10^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6975404fb9bcc3ca41946ce0506f97db30fb8705;p=pandora-kernel.git hwmon: (pmbus) Fix krealloc() misuse in pmbus_add_attribute() If krealloc() returns NULL, it *doesn't* free the original. So any code of the form 'foo = krealloc(foo, …);' is almost certainly a bug. Signed-off-by: David Woodhouse Signed-off-by: Guenter Roeck --- Reading git-diff-tree failed