From: Alexey Dobriyan Date: Thu, 25 Aug 2005 21:49:14 +0000 (+0400) Subject: [PATCH] drivers/hwmon/*: kfree() correct pointers X-Git-Tag: v2.6.13~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f57ff89fee47a317e9e8ca63bf0f139802cc116;p=pandora-kernel.git [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 Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed