Skip to content
Commit 8b3f2eb0 authored by Colin Ian King's avatar Colin Ian King Committed by Saeed Mahameed
Browse files

net/mlx5: fix kvfree of uninitialized pointer spec



Currently when a call to  esw_vport_create_legacy_ingress_acl_group
fails the error exit path to label 'out' will cause a kvfree on the
uninitialized pointer spec.  Fix this by ensuring pointer spec is
initialized to NULL to avoid this issue.

Addresses-Coverity: ("Uninitialized pointer read")
Fixes: 10652f39 ("net/mlx5: Refactor ingress acl configuration")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
parent e53a9d26
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment