linux-stable/drivers/infiniband
Yishai Hadas 84cee24be4 IB/core: Fix mismatch between locked and pinned pages
commit c4870eb874 upstream.

Commit bc3e53f682 ("mm: distinguish between mlocked and pinned
pages") introduced a separate counter for pinned pages and used it in
the IB stack.  However, in ib_umem_get() the pinned counter is
incremented, but ib_umem_release() wrongly decrements the locked
counter.  Fix this.

Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Reviewed-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-06-01 15:15:43 +08:00
..
core IB/core: Fix mismatch between locked and pinned pages 2012-06-01 15:15:43 +08:00
hw RDMA/cxgb4: Drop peer_abort when no endpoint found 2012-06-01 15:15:42 +08:00
ulp IB/srpt: Set srq_type to IB_SRQT_BASIC 2012-04-22 15:38:59 -07:00
Kconfig ib_srpt: Initial SRP Target merge for v3.3-rc1 2011-12-16 06:33:56 +00:00
Makefile ib_srpt: Initial SRP Target merge for v3.3-rc1 2011-12-16 06:33:56 +00:00