Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 197558
b: refs/heads/master
c: 6c75dd0
h: refs/heads/master
v: v3
  • Loading branch information
Julia Lawall authored and Matthew Garrett committed May 20, 2010
1 parent 97273c5 commit 46a316b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 420f5f0c5aeb3ff47cf220e7b256f8fec327659c
refs/heads/master: 6c75dd0f965b7b3480d0e0e9b8d9747988dfe815
6 changes: 2 additions & 4 deletions trunk/drivers/platform/x86/fujitsu-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -1090,10 +1090,9 @@ static int __init fujitsu_init(void)
if (acpi_disabled)
return -ENODEV;

fujitsu = kmalloc(sizeof(struct fujitsu_t), GFP_KERNEL);
fujitsu = kzalloc(sizeof(struct fujitsu_t), GFP_KERNEL);
if (!fujitsu)
return -ENOMEM;
memset(fujitsu, 0, sizeof(struct fujitsu_t));
fujitsu->keycode1 = KEY_PROG1;
fujitsu->keycode2 = KEY_PROG2;
fujitsu->keycode3 = KEY_PROG3;
Expand Down Expand Up @@ -1150,12 +1149,11 @@ static int __init fujitsu_init(void)

/* Register hotkey driver */

fujitsu_hotkey = kmalloc(sizeof(struct fujitsu_hotkey_t), GFP_KERNEL);
fujitsu_hotkey = kzalloc(sizeof(struct fujitsu_hotkey_t), GFP_KERNEL);
if (!fujitsu_hotkey) {
ret = -ENOMEM;
goto fail_hotkey;
}
memset(fujitsu_hotkey, 0, sizeof(struct fujitsu_hotkey_t));

result = acpi_bus_register_driver(&acpi_fujitsu_hotkey_driver);
if (result < 0) {
Expand Down

0 comments on commit 46a316b

Please sign in to comment.