diff options
author | Yuval Mintz <yuvalmin@broadcom.com> | 2013-03-11 05:17:41 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-12 07:54:21 -0400 |
commit | 07ef7bec683beed65ccef330df66d88738c50a4a (patch) | |
tree | 3bc05062a6e11ced7ef6699abb38f4b28fb2cd83 /drivers | |
parent | 3ffd880d3c6c63cdf575764da9e903fc3249937d (diff) | |
download | linux-07ef7bec683beed65ccef330df66d88738c50a4a.tar.gz linux-07ef7bec683beed65ccef330df66d88738c50a4a.tar.bz2 linux-07ef7bec683beed65ccef330df66d88738c50a4a.zip |
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: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c index 7306416bc90d..9f2637c295c8 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c @@ -1854,6 +1854,7 @@ static int bnx2x_vlan_mac_del_all(struct bnx2x *bp, return rc; } list_del(&exeq_pos->link); + bnx2x_exe_queue_free_elem(bp, exeq_pos); } } |