diff options
author | Dan Carpenter | 2018-12-22 08:43:32 +0100 |
---|---|---|
committer | Jason Gunthorpe | 2018-12-23 00:07:13 +0100 |
commit | 58f7c0bfb4e111006ba376df7ab266a6d42d64ba (patch) | |
tree | bd333e4e0e60ceef79460e705a3c482914876904 /drivers/platform/x86/i2c-multi-instantiate.c | |
parent | IB/uverbs: Signedness bug in UVERBS_HANDLER() (diff) | |
download | kernel-qcow2-linux-58f7c0bfb4e111006ba376df7ab266a6d42d64ba.tar.gz kernel-qcow2-linux-58f7c0bfb4e111006ba376df7ab266a6d42d64ba.tar.xz kernel-qcow2-linux-58f7c0bfb4e111006ba376df7ab266a6d42d64ba.zip |
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/platform/x86/i2c-multi-instantiate.c')
0 files changed, 0 insertions, 0 deletions