drm/bridge: analogix: fix edid not works
[firefly-linux-kernel-4.4.55.git] / drivers / gpu / drm / drm_hashtab.c
index 7e4bae760e2743532c39bd0d49cae176e2c93b2f..c3b80fd65d6254e89caf3381529f673764286115 100644 (file)
@@ -125,7 +125,7 @@ int drm_ht_insert_item(struct drm_open_hash *ht, struct drm_hash_item *item)
                parent = &entry->head;
        }
        if (parent) {
-               hlist_add_after_rcu(parent, &item->head);
+               hlist_add_behind_rcu(&item->head, parent);
        } else {
                hlist_add_head_rcu(&item->head, h_list);
        }