summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/vt1211.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2009-02-17 19:59:54 +0100
committerJean Delvare <khali@linux-fr.org>2009-02-17 19:59:54 +0100
commit18632f84fac770125c0982dfadec6b551e82144e (patch)
tree9bcf592080c5f19f22a5ef726f0f4fa866ee381b /drivers/hwmon/vt1211.c
parenthwmon: (f71882fg) Hide misleading error message (diff)
downloadlinux-18632f84fac770125c0982dfadec6b551e82144e.tar.xz
linux-18632f84fac770125c0982dfadec6b551e82144e.zip
hwmon: Fix ACPI resource check error handling
This patch fixes a number of cases where things were not properly cleaned up when acpi_check_resource_conflict() returned an error, causing oopses such as the one reported here: https://bugzilla.redhat.com/show_bug.cgi?id=483208 Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/hwmon/vt1211.c')
-rw-r--r--drivers/hwmon/vt1211.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/vt1211.c b/drivers/hwmon/vt1211.c
index b0ce37852281..73f77a9b8b18 100644
--- a/drivers/hwmon/vt1211.c
+++ b/drivers/hwmon/vt1211.c
@@ -1262,7 +1262,7 @@ static int __init vt1211_device_add(unsigned short address)
res.name = pdev->name;
err = acpi_check_resource_conflict(&res);
if (err)
- goto EXIT;
+ goto EXIT_DEV_PUT;
err = platform_device_add_resources(pdev, &res, 1);
if (err) {