[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20120710.233651.97700112989188430.davem@davemloft.net>
Date: Tue, 10 Jul 2012 23:36:51 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: jeffrey.t.kirsher@...el.com
Cc: amir.hanania@...el.com, netdev@...r.kernel.org, gospo@...hat.com,
sassmann@...hat.com
Subject: Re: [net] net: Fix memory leak - vlan_info struct
From: Jeff Kirsher <jeffrey.t.kirsher@...el.com>
Date: Mon, 9 Jul 2012 23:47:19 -0700
> From: Amir Hanania <amir.hanania@...el.com>
>
> In driver reload test there is a memory leak.
> The structure vlan_info was not freed when the driver was removed.
> It was not released since the nr_vids var is one after last vlan was removed.
> The nr_vids is one, since vlan zero is added to the interface when the interface
> is being set, but the vlan zero is not deleted at unregister.
> Fix - delete vlan zero when we unregister the device.
>
> Signed-off-by: Amir Hanania <amir.hanania@...el.com>
> Acked-by: John Fastabend <john.r.fastabend@...el.com>
> Tested-by: Aaron Brown <aaron.f.brown@...el.com>
> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@...el.com>
Applied and queued up for -stable, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists