linux-stable/drivers/media
Gustavo A. R. Silva 5a18c2434f media: davinci: vpif_capture: add NULL check on devm_kzalloc return value
Check return value from call to devm_kzalloc() in order to prevent
a NULL pointer dereference.

This issue was detected with the help of Coccinelle.

Fixes: 4a5f8ae50b ("[media] davinci: vpif_capture: get subdevs from DT when available")

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-12-08 11:15:41 -05:00
..
cec media: cec: disable the hardware when unregistered 2017-12-08 11:11:25 -05:00
common media: use ARRAY_SIZE 2017-12-08 10:11:00 -05:00
dvb-core media: dvb_net: stop abusing /** for comments 2017-11-27 10:35:34 -05:00
dvb-frontends media: use ARRAY_SIZE 2017-12-08 10:11:00 -05:00
firewire
i2c media: adv7604.c: add missing return 2017-12-08 10:39:17 -05:00
mmc License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
pci media: cx23885: Handle return value of kasprintf 2017-12-08 10:40:39 -05:00
platform media: davinci: vpif_capture: add NULL check on devm_kzalloc return value 2017-12-08 11:15:41 -05:00
radio media: radio-wl1273: fix a parameter name at kernel-doc macro 2017-11-30 04:19:01 -05:00
rc media: rc: partial revert of "media: rc: per-protocol repeat period" 2017-11-30 04:40:23 -05:00
spi
tuners media: tuners: mxl5005s: make arrays static const, reduces object code size 2017-12-08 10:04:22 -05:00
usb media: usbvision: remove unneeded DRIVER_LICENSE #define 2017-12-08 11:13:44 -05:00
v4l2-core media: v4l: async: use the v4l2_dev from the root notifier when matching sub-devices 2017-11-30 04:44:07 -05:00
Kconfig media: rc-core: do not depend on MEDIA_SUPPORT 2017-08-20 09:39:36 -04:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
media-device.c media: drop use of MEDIA_API_VERSION 2017-08-08 06:03:15 -04:00
media-devnode.c media: utilize new cdev_device_add helper function 2017-03-21 06:44:33 +01:00
media-entity.c [media] media: Check for active and has_no_links overrun 2017-10-04 17:16:14 -03:00