aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mlx5/devx.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2022-03-16 08:39:48 +0000
committerJason Gunthorpe <[email protected]>2022-03-18 18:40:54 +0000
commit87e0eacb176f9500c2063d140c0a1d7fa51ab8a5 (patch)
treeca1be05ebaec1584c1bb63405614b6ad8a73a2ed /drivers/infiniband/hw/mlx5/devx.c
parentIB/iser: Fix error flow in case of registration failure (diff)
downloadkernel-87e0eacb176f9500c2063d140c0a1d7fa51ab8a5.tar.gz
kernel-87e0eacb176f9500c2063d140c0a1d7fa51ab8a5.zip
RDMA/nldev: Prevent underflow in nldev_stat_set_counter_dynamic_doit()
This code checks "index" for an upper bound but it does not check for negatives. Change the type to unsigned to prevent underflows. Fixes: 3c3c1f141639 ("RDMA/nldev: Allow optional-counter status configuration through RDMA netlink") Link: https://lore.kernel.org/r/20220316083948.GC30941@kili Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Leon Romanovsky <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/devx.c')
0 files changed, 0 insertions, 0 deletions