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: NLaurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: NRob Clark <robdclark@gmail.com> Signed-off-by: NRob Clark <robdclark@gmail.com>
Showing
想要评论请 注册 或 登录