]> asedeno.scripts.mit.edu Git - linux.git/commit
IB/umem: Fix use of npages/nmap fields
authorArtemy Kovalyov <artemyko@mellanox.com>
Tue, 14 Nov 2017 12:51:59 +0000 (14:51 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 18 Dec 2017 22:37:06 +0000 (15:37 -0700)
commitedf1a84fe37c51290e2c88154ecaf48dadff3d27
tree85766506d676f9ed35d36127ad773d46f7011fec
parent119bf81793ea952fcd46e44378ff3c75562d16f8
IB/umem: Fix use of npages/nmap fields

In ib_umem structure npages holds original number of sg entries, while
nmap is number of DMA blocks returned by dma_map_sg.

Fixes: c5d76f130b28 ('IB/core: Add umem function to read data from user-space')
Signed-off-by: Artemy Kovalyov <artemyko@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/umem.c