]> git.baikalelectronics.ru Git - kernel.git/commit
platform-drivers-x86: intel_mid_thermal: fix memory leak
authorAxel Lin <axel.lin@gmail.com>
Wed, 6 Jul 2011 15:40:51 +0000 (23:40 +0800)
committerMatthew Garrett <mjg@redhat.com>
Fri, 5 Aug 2011 18:46:11 +0000 (14:46 -0400)
commit105e7086e7391af83e0afef41aa872f6b9efed31
treefbbd5410b36f457d4446ba77e2cff7fae5da3ff6
parent62b7af18680b00105dc22028293d31f89944ab2a
platform-drivers-x86: intel_mid_thermal: fix memory leak

The memory for td_info which is allocated in initialize_sensor()
should be properly kfreed in mid_thermal_probe() error patch and
mid_thermal_remove().

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/intel_mid_thermal.c