Commit 9caf83c3 authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller
Browse files

net/mlx4: fix small memory leak on error

"work" needs to be freed before returning on this error path.

Signed-off-by: default avatarDan Carpenter <>
Signed-off-by: default avatarDavid S. Miller <>
parent 4bc41b84
......@@ -1572,6 +1572,7 @@ int mlx4_master_immediate_activate_vlan_qos(struct mlx4_priv *priv,
if (err) {
"No vlan resources slave %d, port %d\n",
slave, port);
Supports Markdown
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