[patch] drm: atmel-hlcdc: fix a NULL check

2016-04-25 Thread Dan Carpenter
If kmalloc() returned NULL we would end up dereferencing "state" a couple lines later. Signed-off-by: Dan Carpenter diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c index 8df0aaf..867069b 100644 --- a/drivers/gpu/drm/atmel-hlcdc/atmel_

[patch] drm: atmel-hlcdc: fix a NULL check

2016-04-25 Thread Boris Brezillon
Hi Daniel, On Mon, 25 Apr 2016 12:04:54 +0300 Dan Carpenter wrote: > If kmalloc() returned NULL we would end up dereferencing "state" a > couple lines later. Can you take this patch in drm-misc, or should I send a PR? Regards, Boris > > Signed-off-by: Dan Carpenter > > diff --git a/driver

[patch] drm: atmel-hlcdc: fix a NULL check

2016-04-25 Thread Boris Brezillon
On Mon, 25 Apr 2016 12:04:54 +0300 Dan Carpenter wrote: > If kmalloc() returned NULL we would end up dereferencing "state" a > couple lines later. > > Signed-off-by: Dan Carpenter Acked-by: Boris Brezillon Thanks, Boris > > diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c > b/

[patch] drm: atmel-hlcdc: fix a NULL check

2016-04-25 Thread Eric Engestrom
On Mon, Apr 25, 2016 at 12:04:54PM +0300, Dan Carpenter wrote: > If kmalloc() returned NULL we would end up dereferencing "state" a > couple lines later. > > Signed-off-by: Dan Carpenter Reviewed-by: Eric Engestrom