aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/platform/x86')
-rw-r--r--drivers/platform/x86/msi-wmi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/platform/x86/msi-wmi.c b/drivers/platform/x86/msi-wmi.c
index 2264331bd48e..b96766b61ea3 100644
--- a/drivers/platform/x86/msi-wmi.c
+++ b/drivers/platform/x86/msi-wmi.c
@@ -176,7 +176,7 @@ static void msi_wmi_notify(u32 value, void *context)
176 pr_debug("Suppressed key event 0x%X - " 176 pr_debug("Suppressed key event 0x%X - "
177 "Last press was %lld us ago\n", 177 "Last press was %lld us ago\n",
178 key->code, ktime_to_us(diff)); 178 key->code, ktime_to_us(diff));
179 return; 179 goto msi_wmi_notify_exit;
180 } 180 }
181 last_pressed[key->code - SCANCODE_BASE] = cur; 181 last_pressed[key->code - SCANCODE_BASE] = cur;
182 182
@@ -195,6 +195,8 @@ static void msi_wmi_notify(u32 value, void *context)
195 pr_info("Unknown key pressed - %x\n", eventcode); 195 pr_info("Unknown key pressed - %x\n", eventcode);
196 } else 196 } else
197 pr_info("Unknown event received\n"); 197 pr_info("Unknown event received\n");
198
199msi_wmi_notify_exit:
198 kfree(response.pointer); 200 kfree(response.pointer);
199} 201}
200 202