commit | 6975404fb9bcc3ca41946ce0506f97db30fb8705 | [log] [tgz] |
---|---|---|
author | David Woodhouse <dwmw2@infradead.org> | Thu Mar 14 13:30:20 2013 +0000 |
committer | Guenter Roeck <linux@roeck-us.net> | Thu Mar 14 06:57:19 2013 -0700 |
tree | 530eb057a39ca7a6822fe8054c644f8e9661e580 | |
parent | df069079c153d22adf6c28dcc0b1cf62bba75167 [diff] |
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 <David.Woodhouse@intel.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>