Skip to content
Commit 363434b5 authored by Guenter Roeck's avatar Guenter Roeck
Browse files

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: default avatarGuenter Roeck <guenter.roeck@ericsson.com>
Cc: stable@vger.kernel.org # 3.0+
Cc: Dirk Eibach <eibach@gdsys.de>
Acked-by: default avatarJean Delvare <khali@linux-fr.org>
parent 2f2da1ac
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment