]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/infiniband/hw/hfi1/user_sdma.c
IB/hfi1: Release node on insert failure
[mirror_ubuntu-bionic-kernel.git] / drivers / infiniband / hw / hfi1 / user_sdma.c
index 42cc371cdf957ce2bc72ccb59bee28e4825ed8a8..ff03e1dad5b9e589a9d7dc78d495bf73e6f1491d 100644 (file)
@@ -1239,6 +1239,7 @@ retry:
                        list_del(&node->list);
                pq->n_locked -= node->npages;
                spin_unlock(&pq->evict_lock);
+               iovec->node = NULL;
                goto bail;
        }
        return 0;