1f57ff89fe
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> |
||
---|---|---|
.. | ||
adm1021.c | ||
adm1025.c | ||
adm1026.c | ||
adm1031.c | ||
adm9240.c | ||
asb100.c | ||
atxp1.c | ||
ds1621.c | ||
fscher.c | ||
fscpos.c | ||
gl518sm.c | ||
gl520sm.c | ||
it87.c | ||
Kconfig | ||
lm63.c | ||
lm75.c | ||
lm75.h | ||
lm77.c | ||
lm78.c | ||
lm80.c | ||
lm83.c | ||
lm85.c | ||
lm87.c | ||
lm90.c | ||
lm92.c | ||
Makefile | ||
max1619.c | ||
pc87360.c | ||
sis5595.c | ||
smsc47b397.c | ||
smsc47m1.c | ||
via686a.c | ||
w83l785ts.c | ||
w83627ehf.c | ||
w83627hf.c | ||
w83781d.c |