]> git.droids-corp.org - dpdk.git/commit
crypto/ipsec_mb: fix tainted data for session
authorCiara Power <ciara.power@intel.com>
Fri, 10 Dec 2021 14:09:52 +0000 (14:09 +0000)
committerAkhil Goyal <gakhil@marvell.com>
Fri, 21 Jan 2022 09:17:35 +0000 (10:17 +0100)
commit21bdbf24321de9f0336a0e6e0bc618a1e094aa4c
tree3db1adc9593345eb08bdf276792485d692218b97
parent581c39b1cb7d82d301a8ec6a16778bcf6ee11c7c
crypto/ipsec_mb: fix tainted data for session

Downcasting a void * to struct aesni_gcm_session * caused the session
data to be treated as tainted.
Removing the void * temporary variable and adding a cast avoids this
issue.

Coverity issue: 374377
Fixes: 746825e5c0ea ("crypto/ipsec_mb: move aesni_gcm PMD")
Cc: stable@dpdk.org
Signed-off-by: Ciara Power <ciara.power@intel.com>
Acked-by: Fan Zhang <roy.fan.zhang@intel.com>
drivers/crypto/ipsec_mb/pmd_aesni_gcm.c