[dpdk-dev] [PATCH] net/mlx4: fix shifts of signed values

Shahaf Shuler shahafs at mellanox.com
Thu May 17 17:46:49 CEST 2018


Wednesday, May 16, 2018 7:21 PM, Adrien Mazarguil:
> Subject: [PATCH] net/mlx4: fix shifts of signed values
> 
> This patch addresses the following issues reported by cppcheck:
> 
>  [drivers/net/mlx4/mlx4_rxtx.c:266]: (error) Shifting signed 32-bit value
>      by 31 bits is undefined behaviour
>  [drivers/net/mlx4/mlx4_rxtx.c:624]: (error) Shifting signed 32-bit value
>      by 31 bits is undefined behaviour
>  [drivers/net/mlx4/mlx4_txq.c:89]: (error) Shifting signed 32-bit value by
>      31 bits is undefined behaviour
>  [drivers/net/mlx4/mlx4_txq.c:91]: (error) Shifting signed 32-bit value by
>      31 bits is undefined behaviour
> 
> Fixes: 78e81a9844f8 ("net/mlx4: merge Tx queue rings management")
> Cc: stable at dpdk.org
> Cc: Matan Azrad <matan at mellanox.com>
> 
> Reported-by: Ferruh Yigit <ferruh.yigit at intel.com>
> Signed-off-by: Adrien Mazarguil <adrien.mazarguil at 6wind.com>

Applied to next-net-mlx, thanks. 


More information about the dev mailing list