Commit 07ef7bec authored by Yuval Mintz's avatar Yuval Mintz Committed by David S. Miller

bnx2x: fix vlan-mac memory leak

Release (previously leaking) memory when elements are removed from pending
execution lists in the bnx2x driver.
Signed-off-by: default avatarYuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: default avatarAriel Elior <ariele@broadcom.com>
Signed-off-by: default avatarEilon Greenstein <eilong@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3ffd880d
...@@ -1854,6 +1854,7 @@ static int bnx2x_vlan_mac_del_all(struct bnx2x *bp, ...@@ -1854,6 +1854,7 @@ static int bnx2x_vlan_mac_del_all(struct bnx2x *bp,
return rc; return rc;
} }
list_del(&exeq_pos->link); list_del(&exeq_pos->link);
bnx2x_exe_queue_free_elem(bp, exeq_pos);
} }
} }
......
Markdown is supported
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