]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/gpu/drm/drm_prime.c
drm/prime: fix error path in drm_gem_prime_fd_to_handle
[karo-tx-linux.git] / drivers / gpu / drm / drm_prime.c
index f1159624c68efaad88c2adb8ed248c21f7d263d2..82cd83e62e7d8823d19761e345d580442f066ee9 100644 (file)
@@ -476,7 +476,7 @@ fail:
        /* hmm, if driver attached, we are relying on the free-object path
         * to detach.. which seems ok..
         */
-       drm_gem_object_handle_unreference_unlocked(obj);
+       drm_gem_handle_delete(file_priv, *handle);
 out_put:
        dma_buf_put(dma_buf);
        mutex_unlock(&file_priv->prime.lock);