]> git.baikalelectronics.ru Git - kernel.git/commit
drm/omap: Don't dereference list head when the connectors list is empty
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 24 Dec 2013 11:58:01 +0000 (12:58 +0100)
committerRob Clark <robdclark@gmail.com>
Mon, 31 Mar 2014 15:06:51 +0000 (11:06 -0400)
commita519f5cab77515e23203d215e20b49e3502536dd
treed4463a5bd48f4e59565f327eb19edf819e59daab
parentc076aaf6af5c3cbe036d1e7ac81b5629e65bbe4b
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 <laurent.pinchart@ideasonboard.com>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/omapdrm/omap_fb.c