]> 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)
commit74e7d33a0d424a3c791e403cafe2a675b8b87d38
treefbbd5410b36f457d4446ba77e2cff7fae5da3ff6
parent0d0e9cea2e829f64ad7d6ef65293bb5ef83025cc
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