commit828f6fa65cupstream. 1. Release pid before enter odp flow 2. Release pid when fail to allocate memory Fixes:87773dd56d("IB: ib_umem_release() should decrement mm->pinned_vm from ib_umem_get") Fixes:8ada2c1c0c("IB/core: Add support for on demand paging regions") Signed-off-by: Kenneth Lee <liguozhu@hisilicon.com> Reviewed-by: Haggai Eran <haggaie@mellanox.com> Reviewed-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Doug Ledford <dledford@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>