aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2018-07-04 12:32:12 +0300
committerJason Gunthorpe <jgg@mellanox.com>2018-07-04 12:05:28 -0600
commitc2d7c8ff89b22ddefb1ac2986c0d48444a667689 (patch)
treec3616a5b1d37952793dbe1079b6fc2ed651f38cd /include
parentMAINTAINERS: Moving out... (diff)
downloadlinux-c2d7c8ff89b22ddefb1ac2986c0d48444a667689.tar.gz
linux-c2d7c8ff89b22ddefb1ac2986c0d48444a667689.zip
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>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions