Skip to content
Commit 6975404f authored by David Woodhouse's avatar David Woodhouse Committed by Guenter Roeck
Browse files

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: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent df069079
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment