Re: [PATCH 15/16] net/dpaa: fix bitmask truncation

2024-11-17 Thread Hemant Agrawal
Acked-by: Hemant Agrawal On 15-11-2024 11:35, Stephen Hemminger wrote: The dqrr_held mask is 64 bit but updates were getting truncated because 1 is of type int (32 bit) and the result shift of int is of type int (32 bit); therefore any value >= 32 would get truncated. Link: https://pvs-studio.

[PATCH 15/16] net/dpaa: fix bitmask truncation

2024-11-14 Thread Stephen Hemminger
The dqrr_held mask is 64 bit but updates were getting truncated because 1 is of type int (32 bit) and the result shift of int is of type int (32 bit); therefore any value >= 32 would get truncated. Link: https://pvs-studio.com/en/blog/posts/cpp/1183/ Fixes: 5e7455931442 ("net/dpaa: support Rx que