bnx2x: fix vlan-mac memory leak
authorYuval Mintz <yuvalmin@broadcom.com>
Mon, 11 Mar 2013 05:17:41 +0000 (05:17 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Mar 2013 11:54:21 +0000 (07:54 -0400)
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>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c

index 7306416..9f2637c 100644 (file)
@@ -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);
                }
        }