kernel_samsung_a53x/drivers/infiniband/hw
Chengchang Tang 699351e192 RDMA/hns: Fix signed-unsigned mixed comparisons
[ Upstream commit b5f9efff101b06fd06a5e280a2b00b1335f5f476 ]

The ib_mtu_enum_to_int() and uverbs_attr_get_len() may returns a negative
value. In this case, mixed comparisons of signed and unsigned types will
throw wrong results.

This patch adds judgement for this situation.

Fixes: 30b707886aeb ("RDMA/hns: Support inline data in extented sge space for RC")
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Link: https://lore.kernel.org/r/20231017125239.164455-4-huangjunxian6@hisilicon.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 11:43:03 +01:00
..
bnxt_re Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cxgb4 RDMA/cxgb4: Check skb value for failure to allocate 2024-11-08 11:24:52 +01:00
efa Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hfi1 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hns RDMA/hns: Fix signed-unsigned mixed comparisons 2024-11-18 11:43:03 +01:00
i40iw Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mlx4 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mlx5 IB/mlx5: Fix rdma counter binding for RAW QP 2024-11-18 11:43:03 +01:00
mthca Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ocrdma Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qedr Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qib Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
usnic Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vmw_pvrdma Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00