From: Guenter Roeck Date: Wed, 22 Feb 2012 16:13:52 +0000 (-0800) Subject: hwmon: (ads1015) Fix file leak in probe function X-Git-Tag: v3.3-rc5~1^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=363434b5dc352464ac7601547891e5fc9105f124;p=pandora-kernel.git 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 Cc: stable@vger.kernel.org # 3.0+ Cc: Dirk Eibach Acked-by: Jean Delvare --- Reading git-diff-tree failed