]> git.kernelconcepts.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>
Thu, 11 Aug 2011 17:14:18 +0000 (10:14 -0700)
commit66a89b2164e2d30661edbd1953eacf0594d8203a
tree4327f52b43071126bdcc0816be3b8305b902e059
parent3a2805e845761ea76a6ad5688d637b2624de0cab
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