Searched hist:c2d7c8ff (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/infiniband/core/ |
H A D | rw.c | c2d7c8ff Wed Jul 04 04:32:12 CDT 2018 Dan Carpenter <dan.carpenter@oracle.com> IB/core: type promotion bug in rdma_rw_init_one_mr()
"nents" is an unsigned int, so if ib_map_mr_sg() returns a negative error code then it's type promoted to a high unsigned int which is treated as success.
Fixes: a060b5629ab0 ("IB/core: generic RDMA READ/WRITE API") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com> c2d7c8ff Wed Jul 04 04:32:12 CDT 2018 Dan Carpenter <dan.carpenter@oracle.com> IB/core: type promotion bug in rdma_rw_init_one_mr() "nents" is an unsigned int, so if ib_map_mr_sg() returns a negative error code then it's type promoted to a high unsigned int which is treated as success. Fixes: a060b5629ab0 ("IB/core: generic RDMA READ/WRITE API") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
|