]> git.droids-corp.org - dpdk.git/commit
net/iavf: fix null pointer dereference
authorWeiguo Li <liwg06@foxmail.com>
Fri, 28 Jan 2022 09:43:15 +0000 (17:43 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Wed, 9 Feb 2022 01:39:39 +0000 (02:39 +0100)
commit1b72049dc2d3b024b8026f57001a98ea1f80e5a7
treeb0e618bb4cc3369f25354d661b2ac1e631b8aad4
parent24a491bb882a3269b9b4e2754e1d5b43d83b9821
net/iavf: fix null pointer dereference

Check for memory allocation failure is added to avoid null
pointer dereference.

Fixes: 6bc987ecb860 ("net/iavf: support IPsec inline crypto")
Cc: stable@dpdk.org
Signed-off-by: Weiguo Li <liwg06@foxmail.com>
Acked-by: Radu Nicolau <radu.nicolau@intel.com>
drivers/net/iavf/iavf_ipsec_crypto.c