Patchwork [net-next,2/9] bnx2x: fix vlan-mac memory leak

login
register
mail settings
Submitter Yuval Mintz
Date Feb. 18, 2013, 8:16 a.m.
Message ID <1361175398-12888-3-git-send-email-yuvalmin@broadcom.com>
Download mbox | patch
Permalink /patch/221162/
State Changes Requested
Delegated to: David Miller
Headers show

Comments

Yuval Mintz - Feb. 18, 2013, 8:16 a.m.
This patch releases memory previously simply omitted 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>
---
 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
index 96dcc92..f701b72 100644
--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
+++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
@@ -2251,6 +2251,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);
 		}
 	}