https://github.com/torvalds/linux
Revision 1f57ff89fee47a317e9e8ca63bf0f139802cc116 authored by Alexey Dobriyan on 25 August 2005, 21:49:14 UTC, committed by Linus Torvalds on 26 August 2005, 23:30:30 UTC
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>
1 parent d634cc1
History
Tip revision: 1f57ff89fee47a317e9e8ca63bf0f139802cc116 authored by Alexey Dobriyan on 25 August 2005, 21:49:14 UTC
[PATCH] drivers/hwmon/*: kfree() correct pointers
Tip revision: 1f57ff8

README

back to top