[PATCH] drivers/hwmon/*: kfree() correct pointers
authorAlexey Dobriyan <adobriyan@gmail.com>
Thu, 25 Aug 2005 21:49:14 +0000 (01:49 +0400)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 26 Aug 2005 23:30:30 +0000 (16:30 -0700)
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>

No differences found