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.2.9~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4651f6ab6be87e326d7ed3820be6cedfca323e51;p=pandora-kernel.git hwmon: (ads1015) Fix file leak in probe function commit 363434b5dc352464ac7601547891e5fc9105f124 upstream. 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: Dirk Eibach Acked-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed