linux_dsm_epyc7002/drivers/gpu/drm/gma500
Gustavo A. R. Silva 3c2c42eb47 drm/gma500: fix potential NULL pointer dereference dereference
NULL check at line 528: if (!sender || !data_out || !len_out) {, implies
that pointer _sender_ might be NULL.

Move pointer _sender_ dereference after NULL check in order to avoid a
potential NULL pointer dereference.

This issue was detected with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20170812015515.GA8360@embeddedgus
2017-08-18 09:10:46 +02:00
..
accel_2d.c
backlight.c
blitter.c
blitter.h
cdv_device.c
cdv_device.h
cdv_intel_crt.c
cdv_intel_display.c
cdv_intel_dp.c
cdv_intel_hdmi.c
cdv_intel_lvds.c
framebuffer.c drm: gma500: remove dead code and pointless local lut storage 2017-08-04 11:35:51 +02:00
framebuffer.h
gem.c drm/gma500: Use .dumb_map_offset and .dumb_destroy defaults 2017-08-16 20:13:11 +02:00
gem.h
gma_device.c
gma_device.h
gma_display.c drm: gma500: remove dead code and pointless local lut storage 2017-08-04 11:35:51 +02:00
gma_display.h drm: Add acquire ctx to ->gamma_set hook 2017-04-06 10:21:55 +02:00
gtt.c drm: use set_memory.h header 2017-05-08 17:15:14 -07:00
gtt.h
intel_bios.c
intel_bios.h
intel_gmbus.c
intel_i2c.c
Kconfig
Makefile drm/gma500: remove unneeded -Iinclude/drm compiler flag 2017-05-18 07:12:50 +02:00
mdfld_device.c
mdfld_dsi_dpi.c
mdfld_dsi_dpi.h
mdfld_dsi_output.c
mdfld_dsi_output.h
mdfld_dsi_pkg_sender.c drm/gma500: fix potential NULL pointer dereference dereference 2017-08-18 09:10:46 +02:00
mdfld_dsi_pkg_sender.h
mdfld_intel_display.c drm/gma500: remove an unneeded NULL check 2017-06-28 19:17:38 +02:00
mdfld_output.c
mdfld_output.h
mdfld_tmd_vid.c
mdfld_tpo_vid.c gpu: drm: gma500: remove two more dead variable 2017-05-23 17:38:33 +02:00
mid_bios.c
mid_bios.h
mmu.c
mmu.h
oaktrail_crtc.c
oaktrail_device.c
oaktrail_hdmi_i2c.c
oaktrail_hdmi.c
oaktrail_lvds_i2c.c
oaktrail_lvds.c
oaktrail.h
opregion.c
opregion.h
power.c
power.h
psb_device.c
psb_device.h
psb_drv.c drm/gma500: Use .dumb_map_offset and .dumb_destroy defaults 2017-08-16 20:13:11 +02:00
psb_drv.h drm/gma500: Use .dumb_map_offset and .dumb_destroy defaults 2017-08-16 20:13:11 +02:00
psb_intel_display.c drm: gma500: remove dead code and pointless local lut storage 2017-08-04 11:35:51 +02:00
psb_intel_drv.h drm: gma500: remove dead code and pointless local lut storage 2017-08-04 11:35:51 +02:00
psb_intel_lvds.c drm/gma500/psb: Actually use VBT mode when it is found 2017-05-23 22:01:07 +02:00
psb_intel_modes.c
psb_intel_reg.h
psb_intel_sdvo_regs.h
psb_intel_sdvo.c
psb_irq.c
psb_irq.h
psb_lid.c
psb_reg.h
tc35876x-dsi-lvds.c
tc35876x-dsi-lvds.h