diff options
author | Dan Carpenter | 2018-12-22 08:42:59 +0100 |
---|---|---|
committer | Jason Gunthorpe | 2018-12-23 00:07:13 +0100 |
commit | 573671a5f6509c4139770452d4516720a84d5b61 (patch) | |
tree | 3ea7b6a5b71b329a8d6cdcaff1b4ab1c88a85b01 /drivers/i3c/internals.h | |
parent | IB/mlx5: Allocate the per-port Q counter shared when DEVX is supported (diff) | |
download | kernel-qcow2-linux-573671a5f6509c4139770452d4516720a84d5b61.tar.gz kernel-qcow2-linux-573671a5f6509c4139770452d4516720a84d5b61.tar.xz kernel-qcow2-linux-573671a5f6509c4139770452d4516720a84d5b61.zip |
IB/uverbs: Signedness bug in UVERBS_HANDLER()
The "num_sge" variable needs to be signed for the error handling to work.
The uverbs_attr_ptr_get_array_size() returns int so this change is safe.
Fixes: ad8a4496757f ("IB/uverbs: Add support to advise_mr")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/i3c/internals.h')
0 files changed, 0 insertions, 0 deletions