git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df06907
)
hwmon: (pmbus) Fix krealloc() misuse in pmbus_add_attribute()
author
David Woodhouse
<dwmw2@infradead.org>
Thu, 14 Mar 2013 13:30:20 +0000
(13:30 +0000)
committer
Guenter Roeck
<linux@roeck-us.net>
Thu, 14 Mar 2013 13:57:19 +0000
(06:57 -0700)
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>
No differences found