diff options
Diffstat (limited to 'drivers/misc/asus-laptop.c')
-rw-r--r-- | drivers/misc/asus-laptop.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/misc/asus-laptop.c b/drivers/misc/asus-laptop.c index 7798f590e5aa..f75306059971 100644 --- a/drivers/misc/asus-laptop.c +++ b/drivers/misc/asus-laptop.c | |||
@@ -979,10 +979,9 @@ static int asus_hotk_add(struct acpi_device *device) | |||
979 | printk(ASUS_NOTICE "Asus Laptop Support version %s\n", | 979 | printk(ASUS_NOTICE "Asus Laptop Support version %s\n", |
980 | ASUS_LAPTOP_VERSION); | 980 | ASUS_LAPTOP_VERSION); |
981 | 981 | ||
982 | hotk = kmalloc(sizeof(struct asus_hotk), GFP_KERNEL); | 982 | hotk = kzalloc(sizeof(struct asus_hotk), GFP_KERNEL); |
983 | if (!hotk) | 983 | if (!hotk) |
984 | return -ENOMEM; | 984 | return -ENOMEM; |
985 | memset(hotk, 0, sizeof(struct asus_hotk)); | ||
986 | 985 | ||
987 | hotk->handle = device->handle; | 986 | hotk->handle = device->handle; |
988 | strcpy(acpi_device_name(device), ASUS_HOTK_DEVICE_NAME); | 987 | strcpy(acpi_device_name(device), ASUS_HOTK_DEVICE_NAME); |