x86/hwmon: don't leak device attribute file from pkgtemp_probe() and pkgtemp_remove()
authorJan Beulich <jbeulich@novell.com>
Mon, 13 Sep 2010 10:14:43 +0000 (10:14 +0000)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Fri, 24 Sep 2010 18:44:19 +0000 (11:44 -0700)
commitd172132f358552eabd7a7410e478ffeead445243
tree89a88cc03fd1b60d047820900268b5187a77bb33
parentd9bca4358286584cc22f4261ee3a60cad01aa4d4
x86/hwmon: don't leak device attribute file from pkgtemp_probe() and pkgtemp_remove()

While apparently inherited from coretemp source, this particular error handling
cleanup and exit path wasn't copied properly (or perhaps got discarded
intermediately and not re-added properly later).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
(added device file removal in pkgtemp_remove)
drivers/hwmon/pkgtemp.c