treewide: kzalloc() -> kcalloc()
[linux-2.6-block.git] / drivers / platform / x86 / thinkpad_acpi.c
index da1ca4856ea192afefa641c9511c45dc7d34aa01..ab2d28867c52178fae4778a615f78d0b798c624b 100644 (file)
@@ -6006,7 +6006,7 @@ static int __init led_init(struct ibm_init_struct *iibm)
        if (led_supported == TPACPI_LED_NONE)
                return 1;
 
-       tpacpi_leds = kzalloc(sizeof(*tpacpi_leds) * TPACPI_LED_NUMLEDS,
+       tpacpi_leds = kcalloc(TPACPI_LED_NUMLEDS, sizeof(*tpacpi_leds),
                              GFP_KERNEL);
        if (!tpacpi_leds) {
                pr_err("Out of memory for LED data\n");