|
@@ -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) {
|