numam-dpdk/drivers/vdpa
Michael Baum c6b552e4c0 vdpa/mlx5: fix overflow in queue attribute
The mlx5_vdpa_event_qp_create function makes shifting to the numeric
constant 1, then multiplies it by another constant and finally assigns
it into a uint64_t variable.

The numeric constant type is an int with a 32-bit sign. if after
shifting , its MSB (bit of sign) will change, the uint64 variable will
get into it a different value than what the function intended it to get.

Set the numeric constant 1 to be uint64_t in the first place.

Fixes: 8395927cdf ("vdpa/mlx5: prepare HW queues")
Cc: stable@dpdk.org

Signed-off-by: Michael Baum <michaelba@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
2021-07-22 14:48:07 +02:00
..
ifc vdpa/ifc: set notify and vring relay thread names 2021-04-21 15:57:51 +02:00
mlx5 vdpa/mlx5: fix overflow in queue attribute 2021-07-22 14:48:07 +02:00
meson.build drivers: clean up build lists 2021-04-21 12:37:55 +02:00