Re: [PATCH] drm: udl: Destroy framebuffer only if it was initialized

2018-04-26 Thread Daniel Vetter
On Thu, Apr 26, 2018 at 12:56 AM, Stéphane Marchesin wrote: > On Tue, Apr 24, 2018 at 6:04 AM, Daniel Vetter wrote: >> On Fri, Apr 20, 2018 at 09:55:32AM -0400, Sean Paul wrote: >>> On Fri, Apr 20, 2018 at 01:50:01PM +0200, Emil Lundmark wrote: >>>

Re: [PATCH] drm: udl: Destroy framebuffer only if it was initialized

2018-04-25 Thread Stéphane Marchesin
On Tue, Apr 24, 2018 at 6:04 AM, Daniel Vetter wrote: > On Fri, Apr 20, 2018 at 09:55:32AM -0400, Sean Paul wrote: >> On Fri, Apr 20, 2018 at 01:50:01PM +0200, Emil Lundmark wrote: >> > This fixes a NULL pointer dereference that can happen if the UDL >> > driver is unloaded

Re: [PATCH] drm: udl: Destroy framebuffer only if it was initialized

2018-04-24 Thread Daniel Vetter
On Fri, Apr 20, 2018 at 09:55:32AM -0400, Sean Paul wrote: > On Fri, Apr 20, 2018 at 01:50:01PM +0200, Emil Lundmark wrote: > > This fixes a NULL pointer dereference that can happen if the UDL > > driver is unloaded before the framebuffer is initialized. This can > > happen e.g. if the USB device

[PATCH] drm: udl: Destroy framebuffer only if it was initialized

2018-04-21 Thread Emil Lundmark
This fixes a NULL pointer dereference that can happen if the UDL driver is unloaded before the framebuffer is initialized. This can happen e.g. if the USB device is unplugged right after it was plugged in. Signed-off-by: Emil Lundmark --- drivers/gpu/drm/udl/udl_fb.c | 8

Re: [PATCH] drm: udl: Destroy framebuffer only if it was initialized

2018-04-20 Thread Sean Paul
On Fri, Apr 20, 2018 at 01:50:01PM +0200, Emil Lundmark wrote: > This fixes a NULL pointer dereference that can happen if the UDL > driver is unloaded before the framebuffer is initialized. This can > happen e.g. if the USB device is unplugged right after it was plugged > in. > JFYI, in future,