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

2014-03-28 Thread Laurent Pinchart
Hi Rob, On Tuesday 24 December 2013 12:58:01 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 Could you please take this patch in your tree ? > --- >

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

2014-03-28 Thread Rob Clark
On Fri, Mar 28, 2014 at 5:56 PM, Laurent Pinchart wrote: > Hi Rob, > > On Tuesday 24 December 2013 12:58:01 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 > >

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

2013-12-24 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) Changes since v1: - Use list_first_entry_or_null