Dan Carpenter c2d7c8ff89 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>
2018-07-04 12:05:28 -06:00
..
2015-06-12 14:49:18 -04:00
2018-06-25 14:19:57 -06:00
2018-06-12 16:19:22 -07:00
2018-06-18 11:22:54 -06:00
2018-06-18 11:22:54 -06:00
2018-06-04 08:48:11 -06:00
2016-05-13 13:37:18 -04:00
2016-03-03 10:20:25 -05:00
2018-03-29 13:42:29 -06:00
2016-03-03 10:20:25 -05:00