]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hwmon: (ibmaem) add missing kfree
authorJulia Lawall <julia@diku.dk>
Tue, 9 Aug 2011 15:10:56 +0000 (11:10 -0400)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Tue, 9 Aug 2011 16:38:24 +0000 (09:38 -0700)
commitad4bd2db27522bd42c030f32b042a912e77d032d
tree4327f52b43071126bdcc0816be3b8305b902e059
parent946c4f437eb042ae85d5e32d4e9f21296af619ed
hwmon: (ibmaem) add missing kfree

rs_resp is dynamically allocated in aem_read_sensor(), so it should be freed
before exiting in every case.  This collects the kfree and the return at
the end of the function.

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Cc: stable@kernel.org # 2.6.27+
drivers/hwmon/ibmaem.c