bnx2x: free the mac filter group list before freeing the cmd
authorjbaron@akamai.com <jbaron@akamai.com>
Mon, 26 Sep 2016 15:00:44 +0000 (11:00 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Sep 2016 13:55:18 +0000 (09:55 -0400)
commite96e0eded1335b9cfac71fcdd989d682eb3f8412
treec220652dd78b24042eb510f6736d6ca05e4ffdec
parent44675a6df839259102178c1e0c3c082821fcb8b7
bnx2x: free the mac filter group list before freeing the cmd

The group list must be freed prior to freeing the command otherwise
we have a use-after-free.

Signed-off-by: Jason Baron <jbaron@akamai.com>
Cc: Yuval Mintz <Yuval.Mintz@qlogic.com>
Cc: Ariel Elior <Ariel.Elior@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c