linux-uconsole/drivers/infiniband/ulp/iser
Max Gurtovoy 7e782544fd IB/iser: Fix dma_nents type definition
[ Upstream commit c1545f1a20 ]

The retured value from ib_dma_map_sg saved in dma_nents variable. To avoid
future mismatch between types, define dma_nents as an integer instead of
unsigned.

Fixes: 57b26497fa ("IB/iser: Pass the correct number of entries for dma mapped SGL")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Israel Rukshin <israelr@mellanox.com>
Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Acked-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-27 14:51:22 +01:00
..
iscsi_iser.c IB/iser: bound protection_sg size by data_sg size 2019-12-31 16:34:49 +01:00
iscsi_iser.h IB/iser: Fix dma_nents type definition 2020-01-27 14:51:22 +01:00
iser_initiator.c IB/iser: Fix possible NULL deref at iser_inv_desc() 2019-11-20 18:47:53 +01:00
iser_memory.c IB/iser: Pass the correct number of entries for dma mapped SGL 2020-01-27 14:50:14 +01:00
iser_verbs.c
Kconfig
Makefile