IB/iser: Fix dma_nents type definition

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>
This commit is contained in:
Max Gurtovoy 2019-02-26 12:22:11 +02:00 committed by Jason Gunthorpe
parent 7095ec3ca0
commit c1545f1a20
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ struct iser_data_buf {
struct scatterlist *sg; struct scatterlist *sg;
int size; int size;
unsigned long data_len; unsigned long data_len;
unsigned int dma_nents; int dma_nents;
}; };
/* fwd declarations */ /* fwd declarations */