[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20120416.235700.92011132488911415.davem@davemloft.net>
Date: Mon, 16 Apr 2012 23:57:00 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: shimoda.hiroaki@...il.com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH net] dummy: Add ndo_uninit().
From: Hiroaki SHIMODA <shimoda.hiroaki@...il.com>
Date: Mon, 16 Apr 2012 08:26:01 +0900
> In register_netdevice(), when ndo_init() is successful and later
> some error occurred, ndo_uninit() will be called.
> So dummy deivce is desirable to implement ndo_uninit() method
> to free percpu stats for this case.
> And, ndo_uninit() is also called along with dev->destructor() when
> device is unregistered, so in order to prevent dev->dstats from
> being freed twice, dev->destructor is modified to free_netdev().
>
> Signed-off-by: Hiroaki SHIMODA <shimoda.hiroaki@...il.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