[dpdk-dev] [PATCH v3 1/2] crypto/nitrox: fix invalid CSR register address generation

Akhil Goyal akhil.goyal at nxp.com
Sun Apr 5 18:54:39 CEST 2020


> 
> If the NPS_PKT ring/port is greater than 8191 the NPS_PKT*() macros will
> evaluate to incorrect values due to unintended sign extension from int
> to unsigned long. To fix this, add UL suffix to the constants in these
> macros. The same problem is with AQMQ_QSZX() macro also.
> 
> Coverity issue: 349899, 349905, 349911, 349921, 349923
> 
> Fixes: 32e4930d5a3b ("crypto/nitrox: add hardware queue management")
> Fixes: 0a8fc2423bff ("crypto/nitrox: introduce Nitrox driver")
> 
> Signed-off-by: Nagadheeraj Rottela <rnagadheeraj at marvell.com>
> ---

Cc:stable at dpdk.org

Applied to dpdk-next-crypto

Thanks.


More information about the dev mailing list