Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cryptodev: fix asymmetric private session variable size
When creating the asymmetric session mempool, the maximum private session size of all devices is used when creating the mempool object size. The return value for ``rte_cryptodev_asym_get_private_session_size`` is unsigned int, whereas the variable was uint8_t, leading to a possible overflow issue. To fix this, the variable for private session size is now changed to unsigned int to match the function return type. Fixes: 1f1e4b7 ("cryptodev: use single mempool for asymmetric session") Reported-by: Arek Kusztal <[email protected]> Signed-off-by: Ciara Power <[email protected]> Acked-by: Fan Zhang <[email protected]> Acked-by: Arek Kusztal <[email protected]>
- Loading branch information