crypto/nitrox: fix oversized device name
In nitrox_sym_pmd_create() the name array will overflow if the pci device name is greater than 57 bytes. To fix this issue subtract pci device name length fr
crypto/nitrox: fix oversized device name
In nitrox_sym_pmd_create() the name array will overflow if the pci device name is greater than 57 bytes. To fix this issue subtract pci device name length from array length while appending substring to the name.
Coverity issue: 349926 Fixes: 9fdef0cc2385 ("crypto/nitrox: create symmetric cryptodev") Cc: [email protected]
Signed-off-by: Nagadheeraj Rottela <[email protected]> Acked-by: Akhil Goyal <[email protected]>
show more ...
|