hwmon: (ibmaem) add missing kfree
commit3ca969416e0fda795c58508d3fa918572326783d
authorJulia Lawall <julia@diku.dk>
Tue, 9 Aug 2011 15:10:56 +0000 (9 11:10 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 29 Aug 2011 21:08:04 +0000 (29 14:08 -0700)
tree20d19a0410bc009dc4f6e97aad252200d76dc0ba
parentae2690d07d6f898892ea2427d4757fe21c64435d
hwmon: (ibmaem) add missing kfree

commit 66a89b2164e2d30661edbd1953eacf0594d8203a upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/hwmon/ibmaem.c