]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (lm85) Fix error paths in probe function
authorJean Delvare <khali@linux-fr.org>
Fri, 29 Apr 2011 14:33:36 +0000 (16:33 +0200)
committerJean Delvare <khali@endymion.delvare>
Fri, 29 Apr 2011 14:33:36 +0000 (16:33 +0200)
commit695d1749beed1995b9e6d076a18bc08862d1fdde
tree61de31e24034cce008e7fd2544ccfdaa95678acd
parentc3ce026ec408a354400125c40e7a9952f115109d
hwmon: (lm85) Fix error paths in probe function

We must remove all files we created, even in error cases.

Fixes second part of kernel bug #34072:
https://bugzilla.kernel.org/show_bug.cgi?id=34072

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Guenter Roeck <guenter.roeck@ericsson.com>
drivers/hwmon/lm85.c