]> git.baikalelectronics.ru Git - kernel.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)
commit0c1b207a2b276da12b34334270a8772dbabd6e9a
tree4327f52b43071126bdcc0816be3b8305b902e059
parent7720c0705375e6ce4a911e14a44e520cab17ebb6
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