summaryrefslogtreecommitdiff
path: root/drivers/infiniband/ulp
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2018-12-22 10:43:32 +0300
committerJason Gunthorpe <jgg@mellanox.com>2018-12-23 02:07:13 +0300
commit58f7c0bfb4e111006ba376df7ab266a6d42d64ba (patch)
treebd333e4e0e60ceef79460e705a3c482914876904 /drivers/infiniband/ulp
parent573671a5f6509c4139770452d4516720a84d5b61 (diff)
downloadlinux-58f7c0bfb4e111006ba376df7ab266a6d42d64ba.tar.xz
RDMA/mlx5: Signedness bug in UVERBS_HANDLER()
The "num_actions" variable needs to be signed for the error handling to work. The maximum number of actions is less than 256 so int type is large enough for that. Fixes: cbfdd442c43e ("IB/uverbs: Add helper to get array size from ptr attribute") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/ulp')
0 files changed, 0 insertions, 0 deletions