aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tilcdc/tilcdc_panel.c
diff options
context:
space:
mode:
authorVille Syrjälä <[email protected]>2016-11-18 19:52:58 +0000
committerVille Syrjälä <[email protected]>2016-12-15 12:55:30 +0000
commit570cec3244447f21f5b24c3a75151b4166e30d95 (patch)
tree91a269fb799c4a7c90f6aef0b4a59f38fa0e3e4d /drivers/gpu/drm/tilcdc/tilcdc_panel.c
parentdrm/i915: Populate fb->format early for inherited fbs (diff)
downloadkernel-570cec3244447f21f5b24c3a75151b4166e30d95.tar.gz
kernel-570cec3244447f21f5b24c3a75151b4166e30d95.zip
drm: Reject fbs w/o format info in drm_framebuffer_init()
Any framebuffer that doesn't have proper format information when drm_framebuffer_init() is called is a bug. Let's warn and return an error to avoid oopsing the kernel later due to dereferencing the NULL fb->format pointer. Cc: Laurent Pinchart <[email protected]> Suggested-by: Laurent Pinchart <[email protected]> Signed-off-by: Ville Syrjälä <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected] Reviewed-by: Laurent Pinchart <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/tilcdc/tilcdc_panel.c')
0 files changed, 0 insertions, 0 deletions