]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (ads1015) Fix file leak in probe function
authorGuenter Roeck <guenter.roeck@ericsson.com>
Wed, 22 Feb 2012 16:13:52 +0000 (08:13 -0800)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Thu, 23 Feb 2012 14:47:41 +0000 (06:47 -0800)
commit3d1d791d3980f3f090699c4dfaa1a5a07d084b3c
treea4e4a64e24089b59f718d2f2ab1458609a10847c
parent887e85e526c18150996c6c21874ec8b953e8def9
hwmon: (ads1015) Fix file leak in probe function

An error while creating sysfs attribute files in the driver's probe function
results in an error abort, but already created files are not removed. This patch
fixes the problem.

Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Cc: stable@vger.kernel.org # 3.0+
Cc: Dirk Eibach <eibach@gdsys.de>
Acked-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/ads1015.c