linux_dsm_epyc7002/drivers/gpu/drm/gma500
Colin Ian King 7da5492739 drm/gma500: fix null dereference of pointer fb before null check
Pointer fb is being dereferenced when assigning dev before it
is null checked.  Fix this by only dereferencing dev after the
null check.

Fixes: 6b7ce2c416 ("drm/gma500: Remove struct psb_fbdev")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191216162136.270114-1-colin.king@canonical.com
2019-12-19 15:33:40 +01:00
..
accel_2d.c drm/gma500: fix null dereference of pointer fb before null check 2019-12-19 15:33:40 +01:00
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
framebuffer.h
gem.c
gem.h
gma_device.c
gma_device.h
gma_display.c
gma_display.h
gtt.c
gtt.h
intel_bios.c
intel_bios.h
intel_gmbus.c
intel_i2c.c
Kconfig
Makefile
mdfld_device.c
mdfld_dsi_dpi.c
mdfld_dsi_dpi.h
mdfld_dsi_output.c
mdfld_dsi_output.h
mdfld_dsi_pkg_sender.c
mdfld_dsi_pkg_sender.h
mdfld_intel_display.c
mdfld_output.c
mdfld_output.h
mdfld_tmd_vid.c
mdfld_tpo_vid.c
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
psb_drv.h
psb_intel_display.c
psb_intel_drv.h
psb_intel_lvds.c
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