From: Michael Baum: > The mlx5_compress_qp_setup function makes shifting to the numeric > constant 1, then sends it as a parameter to rte_calloc function. > > The rte_calloc function expects to get size_t (64 bits, unsigned) and instead > gets a 32-bit variable, because the numeric constant size is a 32-bit. > In case the shift is greater than 32 the variable will lose its value even > though > the function can get 64-bit argument. > > Change the size of the numeric constant 1 to 64-bit. > > Fixes: 8619fcd5161b ("compress/mlx5: support queue pair operations") > Cc: sta...@dpdk.org > > Signed-off-by: Michael Baum <michae...@nvidia.com> Acked-by: Matan Azrad <ma...@nvidia.com>
- [dpdk-dev] [PATCH 1/4] regex/mlx5: fix size of setup const... Michael Baum
- [dpdk-dev] [PATCH 2/4] compress/mlx5: fix constant si... Michael Baum
- Re: [dpdk-dev] [PATCH 2/4] compress/mlx5: fix con... Matan Azrad
- Re: [dpdk-dev] [dpdk-stable] [PATCH 2/4] compress... Thomas Monjalon
- Re: [dpdk-dev] [dpdk-stable] [PATCH 2/4] comp... Michael Baum
- [dpdk-dev] [PATCH 3/4] vdpa/mlx5: fix constant type i... Michael Baum
- [dpdk-dev] [PATCH 4/4] net/mlx5: fix constant type in... Michael Baum
- Re: [dpdk-dev] [PATCH 1/4] regex/mlx5: fix size of se... Matan Azrad
- [dpdk-dev] [PATCH v2 1/4] regex/mlx5: fix size of set... Michael Baum
- [dpdk-dev] [PATCH v2 2/4] compress/mlx5: fix cons... Michael Baum
- [dpdk-dev] [PATCH v2 3/4] vdpa/mlx5: fix constant... Michael Baum