aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/sbs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/sbs.c')
-rw-r--r--drivers/acpi/sbs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/acpi/sbs.c b/drivers/acpi/sbs.c
index 2fb7533314cd..f58fc7447ab4 100644
--- a/drivers/acpi/sbs.c
+++ b/drivers/acpi/sbs.c
@@ -1576,12 +1576,11 @@ static int acpi_sbs_add(struct acpi_device *device)
1576 int id, cnt; 1576 int id, cnt;
1577 acpi_status status = AE_OK; 1577 acpi_status status = AE_OK;
1578 1578
1579 sbs = kmalloc(sizeof(struct acpi_sbs), GFP_KERNEL); 1579 sbs = kzalloc(sizeof(struct acpi_sbs), GFP_KERNEL);
1580 if (!sbs) { 1580 if (!sbs) {
1581 ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "kmalloc() failed\n")); 1581 ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "kmalloc() failed\n"));
1582 return -ENOMEM; 1582 return -ENOMEM;
1583 } 1583 }
1584 memset(sbs, 0, sizeof(struct acpi_sbs));
1585 1584
1586 cnt = 0; 1585 cnt = 0;
1587 while (cnt < 10) { 1586 while (cnt < 10) {