projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
868b8d3
)
platform/x86: dell-laptop: Allocate buffer before rfkill use
author
Mario Limonciello
<
[email protected]
>
Wed, 15 Nov 2017 20:21:13 +0000
(14:21 -0600)
committer
Darren Hart (VMware)
<
[email protected]
>
Fri, 17 Nov 2017 01:49:49 +0000
(17:49 -0800)
On machines using rfkill interface the buffer needs to have been
allocated before the initial use (memset) of it.
Reported-by: Valdis Kletnieks <
[email protected]
>
Signed-off-by: Mario Limonciello <
[email protected]
>
Tested-by: Valdis Kletnieks <
[email protected]
>
Signed-off-by: Darren Hart (VMware) <
[email protected]
>
drivers/platform/x86/dell-laptop.c
patch
|
blob
|
history
diff --git
a/drivers/platform/x86/dell-laptop.c
b/drivers/platform/x86/dell-laptop.c
index c4903c5ce7cfb014430ffb588c2fea0c9cf135b2..2d704361f67284304b17a781ea8b45da617211be 100644
(file)
--- a/
drivers/platform/x86/dell-laptop.c
+++ b/
drivers/platform/x86/dell-laptop.c
@@
-2073,6
+2073,11
@@
static int __init dell_init(void)
if (ret)
goto fail_platform_device2;
+ buffer = kzalloc(sizeof(struct calling_interface_buffer), GFP_KERNEL);
+ if (!buffer)
+ goto fail_buffer;
+
+
ret = dell_setup_rfkill();
if (ret) {
@@
-2080,10
+2085,6
@@
static int __init dell_init(void)
goto fail_rfkill;
}
- buffer = kzalloc(sizeof(struct calling_interface_buffer), GFP_KERNEL);
- if (!buffer)
- goto fail_buffer;
-
if (quirks && quirks->touchpad_led)
touchpad_led_init(&platform_device->dev);