[PATCH 22/37] drm: Reject fbs w/o format info in drm_framebuffer_init()

2016-11-19 Thread Laurent Pinchart
Hi Ville, Thank you for the patch. On Friday 18 Nov 2016 21:52:58 ville.syrjala at linux.intel.com wrote: > From: Ville Syrjälä > > 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 t

[PATCH 22/37] drm: Reject fbs w/o format info in drm_framebuffer_init()

2016-11-18 Thread ville.syrj...@linux.intel.com
From: Ville Syrjälä 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 Suggested-by: Laurent Pinchar