From: Maxime Coquelin <hidden> Date: 2021-06-17 16:49:44
On 5/24/21 11:08 AM, Thierry Herbelot wrote:
Use vc_req only after it was checked not to be NULL.
Fixes: 2d962bb736521 ("vhost/crypto: fix possible TOCTOU attack")
Cc: stable@dpdk.org
Cc: Maxime Coquelin <redacted>
Cc: Chenbo Xia <redacted>
Signed-off-by: Thierry Herbelot <redacted>
--
V2: fix copy/paste typo
---
lib/vhost/vhost_crypto.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)