projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'mac80211-for-davem-2016-06-09' of git://git.kernel.org/pub/scm/linux/kerne...
[cascardo/linux.git]
/
drivers
/
platform
/
x86
/
sony-laptop.c
diff --git
a/drivers/platform/x86/sony-laptop.c
b/drivers/platform/x86/sony-laptop.c
index
e9caa34
..
1dba359
100644
(file)
--- a/
drivers/platform/x86/sony-laptop.c
+++ b/
drivers/platform/x86/sony-laptop.c
@@
-1446,6
+1446,9
@@
static void sony_nc_function_cleanup(struct platform_device *pd)
{
unsigned int i, result, bitmask, handle;
+ if (!handles)
+ return;
+
/* get enabled events and disable them */
sony_nc_int_call(sony_nc_acpi_handle, "SN01", NULL, &bitmask);
sony_nc_int_call(sony_nc_acpi_handle, "SN03", &bitmask, &result);