[PATCH AUTOSEL for 4.4 090/101] IB/umem: Fix use of npages/nmap fields

2018-03-07 Thread Sasha Levin
From: Artemy Kovalyov [ Upstream commit edf1a84fe37c51290e2c88154ecaf48dadff3d27 ] 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

[PATCH AUTOSEL for 4.4 090/101] IB/umem: Fix use of npages/nmap fields

2018-03-07 Thread Sasha Levin
From: Artemy Kovalyov [ Upstream commit edf1a84fe37c51290e2c88154ecaf48dadff3d27 ] 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')