diff options
author | Dave Airlie <airlied@redhat.com> | 2014-04-04 08:03:21 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-04-04 08:03:21 +1000 |
commit | 2614dc66837c2a6fd0e14e3f8e72343782c8b784 (patch) | |
tree | add8d8f2394ab8bc696ca787bf2c14ef45a88297 /drivers/gpu/drm/omapdrm | |
parent | d9961b22716ddf59ca307fe862f93ff0ea919952 (diff) | |
parent | 06fb220b2d1a80be5621fa06ef276a3890e6be78 (diff) | |
download | linux-2614dc66837c2a6fd0e14e3f8e72343782c8b784.tar.bz2 |
Merge branch 'msm-next' of git://people.freedesktop.org/~robclark/linux into drm-next
* 'msm-next' of git://people.freedesktop.org/~robclark/linux:
drm/omap: Don't dereference list head when the connectors list is empty
drm/msm/mdp: add timeout for irq wait
drm/msm: validate flags, etc
drm/msm: use componentised device support
drm/msm: add chip-id param
drm/msm: crank down gpu when inactive
drm/msm: spin helper
drm/msm: add hang_debug module param
drm/msm: hdmi audio support
Diffstat (limited to 'drivers/gpu/drm/omapdrm')
-rw-r--r-- | drivers/gpu/drm/omapdrm/omap_fb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_fb.c b/drivers/gpu/drm/omapdrm/omap_fb.c index 0d5e9b7e8bbf..d2b8c49bfb4a 100644 --- a/drivers/gpu/drm/omapdrm/omap_fb.c +++ b/drivers/gpu/drm/omapdrm/omap_fb.c @@ -306,7 +306,8 @@ struct drm_connector *omap_framebuffer_get_next_connector( struct drm_connector *connector = from; if (!from) - return list_first_entry(connector_list, typeof(*from), head); + return list_first_entry_or_null(connector_list, typeof(*from), + head); list_for_each_entry_from(connector, connector_list, head) { if (connector != from) { |