linux/drivers/infiniband
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: a060b5629a ("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
..
core IB/core: type promotion bug in rdma_rw_init_one_mr() 2018-07-04 12:05:28 -06:00
hw RDMA/i40w: Hold read semaphore while looking after VMA 2018-07-04 11:51:06 -06:00
sw IB/rxe: don't clear the tx queue on every transfer 2018-06-29 12:26:13 -06:00
ulp ib_srpt: Fix a use-after-free in __srpt_close_all_ch() 2018-07-03 14:14:21 -06:00
Kconfig RDMA/ucm: Mark UCM interface as BROKEN 2018-05-24 09:39:25 -06:00
Makefile