linux-bl808/drivers/infiniband/hw/mlx5
Yishai Hadas 2904bb37b3 IB/core: Split uverbs_get_const/default to consider target type
Change uverbs_get_const/uverbs_get_const_default to work properly with
both signed/unsigned parameters.

Current APIs mix s64 and u64 which leads to incorrect check when u64
value was supplied and its upper bit was set. In that case
uverbs_get_const() / uverbs_get_const_default() lower bound check may
fail unexpectedly, target is unsigned (lower bound is 0) but value
became negative as of the s64 usage.

Split to have two different APIs, no change to callers as the required
API will be called internally according to the target type.

Link: https://lore.kernel.org/r/20210304130501.1102577-3-leon@kernel.org
Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2021-03-11 20:20:36 -04:00
..
ah.c
cmd.c
cmd.h
cong.c
counters.c
counters.h
cq.c
devx.c IB/mlx5: Add missing error code 2021-03-01 14:49:09 -04:00
devx.h
doorbell.c
fs.c
fs.h
gsi.c
ib_rep.c
ib_rep.h
ib_virt.c
Kconfig
mad.c
main.c IB/core: Split uverbs_get_const/default to consider target type 2021-03-11 20:20:36 -04:00
Makefile
mem.c
mlx5_ib.h RDMA/mlx5: Consolidate MR destruction to mlx5_ib_dereg_mr() 2021-03-11 20:03:25 -04:00
mr.c RDMA/mlx5: Rename mlx5_mr_cache_invalidate() to revoke_mr() 2021-03-11 20:03:26 -04:00
odp.c RDMA/mlx5: Consolidate MR destruction to mlx5_ib_dereg_mr() 2021-03-11 20:03:25 -04:00
qos.c
qp.c RDMA/mlx5: Fix mlx5 rates to IB rates map 2021-03-11 20:12:39 -04:00
qp.h
qpc.c
restrack.c
restrack.h
srq.c
srq.h
srq_cmd.c
std_types.c
wr.c
wr.h