Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/iavf: fix memory leak on security context error
[ upstream commit 8758ad5f8633ce4197271d41ece0cc7f799d3d6e ] In iavf_security_ctx_create() allocated memory for the 'security_ctx', we should free it when memory malloc for the 'iavf_security_ctx' fails, otherwise it will lead to memory leak. Fixes: 6bc987e ("net/iavf: support IPsec inline crypto") Signed-off-by: Yunjian Wang <wangyunjian@huawei.com> Acked-by: Qi Zhang <qi.z.zhang@intel.com>
- Loading branch information