diff options
author | Kenneth Lee <liguozhu@hisilicon.com> | 2017-01-05 10:00:05 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-02-01 10:30:53 +0300 |
commit | 5288474d2f48f5b7bf4c87871c8081b3f11c52f7 (patch) | |
tree | 692b7eb1ac7f777bd6bba4cd872f7a1860be3e36 /drivers/media/i2c/bt866.c | |
parent | e114e66eec3d447cd1f5b5637e30c42424313eaf (diff) | |
download | linux-5288474d2f48f5b7bf4c87871c8081b3f11c52f7.tar.xz |
IB/umem: Release pid in error and ODP flow
commit 828f6fa65ce7e80f77f5ab12942e44eb3d9d174e upstream.
1. Release pid before enter odp flow
2. Release pid when fail to allocate memory
Fixes: 87773dd56d54 ("IB: ib_umem_release() should decrement mm->pinned_vm from ib_umem_get")
Fixes: 8ada2c1c0c1d ("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>
Diffstat (limited to 'drivers/media/i2c/bt866.c')
0 files changed, 0 insertions, 0 deletions