On Mon, Aug 18, 2014 at 05:08:44PM +0800, Xiubo Li wrote: > Since we cannot make sure the 'chip->npwm' will always be none zero here, > and then if either equal to zero, the kzalloc() will return ZERO_SIZE_PTR, > which equals to ((void *)16). > > So this patch fix this with just doing the zero check before calling > kzalloc(). > > Signed-off-by: Xiubo Li <[email protected]> > --- > drivers/pwm/core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks. Thierry
pgpMeLWMv1JEr.pgp
Description: PGP signature
