aboutsummaryrefslogtreecommitdiff
path: root/drivers/platform/x86/wmi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/platform/x86/wmi.c')
-rw-r--r--drivers/platform/x86/wmi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/wmi.c b/drivers/platform/x86/wmi.c
index b8e5383eab0..05cc79672a8 100644
--- a/drivers/platform/x86/wmi.c
+++ b/drivers/platform/x86/wmi.c
@@ -820,7 +820,7 @@ static acpi_status parse_wdg(acpi_handle handle)
retval = wmi_create_device(&gblock[i], wblock, handle);
if (retval) {
wmi_free_devices();
- break;
+ goto out_free_pointer;
}
}