linux-hardened/drivers/gpu/ipu-v3
LABBE Corentin e92e447877 gpu: ipu-v3: fix a possible NULL dereference
of_match_device could return NULL, and so cause a NULL pointer
dereference later.

For fixing this problem, we use of_device_get_match_data(), this will
simplify the code a little by using a standard function for
getting the match data.

Testing the return value of of_device_get_match_data is also necessary
for avoiding a second NULL deref later on devtype.

Signed-off-by: LABBE Corentin <clabbe.montjoie@gmail.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
2016-09-19 08:30:10 +02:00
..
ipu-common.c gpu: ipu-v3: fix a possible NULL dereference 2016-09-19 08:30:10 +02:00
ipu-cpmem.c gpu: ipu-cpmem: Add ipu_cpmem_get_burstsize() 2016-08-08 11:44:20 +02:00
ipu-csi.c gpu: ipu-v3: Fix CSI data format for 16-bit media bus formats 2016-08-08 11:44:20 +02:00
ipu-dc.c gpu: ipu-v3: ipu-dc: don't bug out on invalid bus_format 2016-07-12 18:26:05 +02:00
ipu-di.c drm/imx: atomic phase 1: Use transitional atomic CRTC and plane helpers 2016-07-12 18:23:47 +02:00
ipu-dmfc.c gpu: ipu-v3: Do not wait for DMFC FIFO to clear when disabling DMFC channel 2016-08-29 12:45:05 +02:00
ipu-dp.c Merge branch 'drm-next' of git://people.freedesktop.org/~airlied/linux 2014-06-12 11:32:30 -07:00
ipu-ic.c gpu: ipu-v3: Fix IRT usage 2016-08-08 11:44:20 +02:00
ipu-prv.h gpu: ipu-v3: Add FSU channel linking support 2016-08-29 16:30:23 +02:00
ipu-smfc.c IPUv3 fixes for v3.18 2014-10-07 14:31:14 +10:00
ipu-vdi.c gpu: ipu-v3: Add Video Deinterlacer unit 2016-08-29 16:30:11 +02:00
Kconfig gpu: ipu-v3: Kconfig: Remove SOC_IMX6SL from IMX_IPUV3_CORE Kconfig 2014-09-24 23:50:25 +02:00
Makefile gpu: ipu-v3: Add Video Deinterlacer unit 2016-08-29 16:30:11 +02:00