aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/asus_acpi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/asus_acpi.c')
-rw-r--r--drivers/acpi/asus_acpi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/acpi/asus_acpi.c b/drivers/acpi/asus_acpi.c
index 7cc54aacd4c0..396140bbbe57 100644
--- a/drivers/acpi/asus_acpi.c
+++ b/drivers/acpi/asus_acpi.c
@@ -1264,10 +1264,9 @@ static int asus_hotk_add(struct acpi_device *device)
1264 printk(KERN_NOTICE "Asus Laptop ACPI Extras version %s\n", 1264 printk(KERN_NOTICE "Asus Laptop ACPI Extras version %s\n",
1265 ASUS_ACPI_VERSION); 1265 ASUS_ACPI_VERSION);
1266 1266
1267 hotk = kmalloc(sizeof(struct asus_hotk), GFP_KERNEL); 1267 hotk = kzalloc(sizeof(struct asus_hotk), GFP_KERNEL);
1268 if (!hotk) 1268 if (!hotk)
1269 return -ENOMEM; 1269 return -ENOMEM;
1270 memset(hotk, 0, sizeof(struct asus_hotk));
1271 1270
1272 hotk->handle = device->handle; 1271 hotk->handle = device->handle;
1273 strcpy(acpi_device_name(device), ACPI_HOTK_DEVICE_NAME); 1272 strcpy(acpi_device_name(device), ACPI_HOTK_DEVICE_NAME);