From: Laurent Pinchart Date: Tue, 24 Dec 2013 11:58:01 +0000 (+0100) Subject: drm/omap: Don't dereference list head when the connectors list is empty X-Git-Tag: v3.15-rc1~51^2~15^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06fb220b2d1a80be5621fa06ef276a3890e6be78;p=pandora-kernel.git drm/omap: Don't dereference list head when the connectors list is empty 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 Reviewed-by: Rob Clark Signed-off-by: Rob Clark --- Reading git-diff-tree failed