Re: [PATCH] fb: reject enable request when framebuffer has no mode

2018-04-09 Thread Sascha Hauer
On Fri, Apr 06, 2018 at 05:23:23PM +0200, Lucas Stach wrote: > If no display is connected or the display modes are incompatible with > the scanout hardware we might end up with a registered framebuffer with > no modes. Trying to enable such a framebuffer will blow up with NULL > ptr dereferences

[PATCH] fb: reject enable request when framebuffer has no mode

2018-04-06 Thread Lucas Stach
If no display is connected or the display modes are incompatible with the scanout hardware we might end up with a registered framebuffer with no modes. Trying to enable such a framebuffer will blow up with NULL ptr dereferences in various places, so just don't do it. Signed-off-by: Lucas Stach