aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core/cma.c
diff options
context:
space:
mode:
authorArtemy Kovalyov <artemyko@mellanox.com>2017-11-14 14:51:59 +0200
committerJason Gunthorpe <jgg@mellanox.com>2017-12-18 15:37:06 -0700
commitedf1a84fe37c51290e2c88154ecaf48dadff3d27 (patch)
tree85766506d676f9ed35d36127ad773d46f7011fec /drivers/infiniband/core/cma.c
parentIB/cm: Add debug prints to ib_cm (diff)
downloadlinux-dev-edf1a84fe37c51290e2c88154ecaf48dadff3d27.tar.xz
linux-dev-edf1a84fe37c51290e2c88154ecaf48dadff3d27.zip
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>
Diffstat (limited to 'drivers/infiniband/core/cma.c')
0 files changed, 0 insertions, 0 deletions