Re: [PATCH] add LED driver for PCA9663 I2C chip

From: Andrew Morton
Date: Thu Feb 02 2012 - 17:08:32 EST


On Thu, 2 Feb 2012 22:41:13 +0100
Peter Meerwald <pmeerw@xxxxxxxxxx> wrote:

> From: Peter Meerwald <p.meerwald@xxxxxxxxxxxxxxxxxx>
>
> simple driver for the PCA9633 I2C chip supporting four LEDs and
> 255 brightness levels
>
>
> ...
>
> +
> + pca9633 = kcalloc(sizeof(*pca9633) * 4, GFP_KERNEL);

err,

--- a/drivers/leds/leds-pca9633.c~drivers-leds-add-driver-for-pca9663-i2c-chip-fix
+++ a/drivers/leds/leds-pca9633.c
@@ -110,7 +110,7 @@ static int __devinit pca9633_probe(struc
}
}

- pca9633 = kcalloc(sizeof(*pca9633) * 4, GFP_KERNEL);
+ pca9633 = kcalloc(sizeof(*pca9633), 4, GFP_KERNEL);
if (!pca9633)
return -ENOMEM;

>
> ...
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/