summaryrefslogtreecommitdiffstats
path: root/net/irda
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2005-08-25 23:49:14 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2005-08-27 01:30:30 +0200
commit1f57ff89fee47a317e9e8ca63bf0f139802cc116 (patch)
tree0db3419ab73cabed542a18cd5c7da50b03df896c /net/irda
parent[PATCH] Fix oops in fs/locks.c on close of file with pending locks (diff)
downloadlinux-1f57ff89fee47a317e9e8ca63bf0f139802cc116.tar.xz
linux-1f57ff89fee47a317e9e8ca63bf0f139802cc116.zip
[PATCH] drivers/hwmon/*: kfree() correct pointers
The adm9240 driver, in adm9240_detect(), allocates a structure. The error path attempts to kfree() ->client field of it (second one), resulting in an oops (or slab corruption) if the hardware is not present. ->client field in adm1026, adm1031, smsc47b397 and smsc47m1 is the first in ${HWMON}_data structure, but fix them too. Signed-off-by: Jonathan Corbet <corbet@lwn.net Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'net/irda')
0 files changed, 0 insertions, 0 deletions