[PATCH] drm/omap: Don't dereference list head when the connectors list is empty

2013-12-24 Thread Archit Taneja
Hi, On Monday 23 December 2013 08:57 PM, Laurent Pinchart wrote: > The connectors list iterator returns the list head when the list is > empty. Fix it by returning NULL in that case. > > Signed-off-by: Laurent Pinchart > --- > drivers/gpu/drm/omapdrm/omap_fb.c | 5 - > 1 file changed, 4 in

[PATCH] drm/omap: Don't dereference list head when the connectors list is empty

2013-12-23 Thread Laurent Pinchart
Hi Rob, On Monday 23 December 2013 13:04:15 Rob Clark wrote: > On Mon, Dec 23, 2013 at 10:27 AM, Laurent Pinchart > > wrote: > > The connectors list iterator returns the list head when the list is > > empty. Fix it by returning NULL in that case. > > > > Signed-off-by: Laurent Pinchart > > Th

[PATCH] drm/omap: Don't dereference list head when the connectors list is empty

2013-12-23 Thread Laurent Pinchart
The connectors list iterator returns the list head when the list is empty. Fix it by returning NULL in that case. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/omap_fb.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/omapdrm/omap_fb.c b/dri

[PATCH] drm/omap: Don't dereference list head when the connectors list is empty

2013-12-23 Thread Rob Clark
On Mon, Dec 23, 2013 at 10:27 AM, Laurent Pinchart wrote: > The connectors list iterator returns the list head when the list is > empty. Fix it by returning NULL in that case. > > Signed-off-by: Laurent Pinchart Thanks Signed-off-by: Rob Clark > --- > drivers/gpu/drm/omapdrm/omap_fb.c | 5 ++