android_kernel_samsung_univ.../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
..
core.c pwm: Fix possible ZERO_SIZE_PTR pointer dereferencing error. 2014-08-25 14:38:12 +02:00
Kconfig pwm: lpss: make it buildable only on X86 2014-08-25 11:46:37 +02:00
Makefile pwm: lpss: Properly split driver to parts 2014-08-23 00:25:47 +02:00
pwm-ab8500.c
pwm-atmel-tcb.c
pwm-atmel.c
pwm-bcm-kona.c
pwm-bfin.c
pwm-clps711x.c
pwm-ep93xx.c
pwm-fsl-ftm.c pwm: fsl-ftm: Convert to direct regmap API usage 2014-08-20 10:10:12 +02:00
pwm-imx.c pwm: imx: set can_sleep flag for imx_pwm 2014-08-07 13:22:44 +02:00
pwm-jz4740.c
pwm-lp3943.c
pwm-lpc32xx.c
pwm-lpss-pci.c pwm: lpss: pci: Move to use pcim_enable_device() 2014-08-23 00:25:51 +02:00
pwm-lpss-platform.c pwm: lpss: Properly split driver to parts 2014-08-23 00:25:47 +02:00
pwm-lpss.c pwm: lpss: use c99 initializers in structures 2014-08-25 11:45:34 +02:00
pwm-lpss.h pwm: lpss: Properly split driver to parts 2014-08-23 00:25:47 +02:00
pwm-mxs.c
pwm-pca9685.c
pwm-puv3.c
pwm-pxa.c
pwm-renesas-tpu.c
pwm-rockchip.c pwm: rockchip: Added to support for RK3288 SoC 2014-08-08 13:12:47 +02:00
pwm-samsung.c
pwm-spear.c
pwm-sti.c pwm: sti: Remove PWM period table 2014-08-08 13:12:46 +02:00
pwm-tegra.c
pwm-tiecap.c
pwm-tiehrpwm.c
pwm-tipwmss.c pwm: pwm-tipwmss: remove unnecessary OOM messages 2014-08-07 13:14:33 +02:00
pwm-tipwmss.h
pwm-twl-led.c
pwm-twl.c
pwm-vt8500.c
sysfs.c