]> 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)
commitf1686a584f1c8948144cda9b39cac63577790488
tree4327f52b43071126bdcc0816be3b8305b902e059
parent2a4f8dc127a8b096fa6e78ee89f012e7b0bfb4d9
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