Files
linux/drivers/pwm
Xiubo Li 533acc0e8d pwm: Fix possible ZERO_SIZE_PTR pointer dereferencing error.
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 <Li.Xiubo@freescale.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
2014-08-25 14:38:12 +02:00
..
2013-06-12 13:18:29 +02:00
2014-03-18 21:15:16 +01:00
2013-12-12 13:23:23 +01:00
2013-06-12 13:18:29 +02:00
2014-08-08 13:12:46 +02:00