aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_input.c
diff options
context:
space:
mode:
authorHiroaki SHIMODA <shimoda.hiroaki@gmail.com>2012-04-15 09:26:01 -0400
committerLuis Henriques <luis.henriques@canonical.com>2012-05-01 06:00:23 -0400
commit048ad30176da1aedd9c79404f55042437e83f566 (patch)
tree041973b461bc465be81311fb7a5811c6a78e2a80 /net/ipv4/tcp_input.c
parent33600719436d0e1d6be0e9345954e88fb93ff848 (diff)
dummy: Add ndo_uninit().
BugLink: http://bugs.launchpad.net/bugs/990544 [ Upstream commit 890fdf2a0cb88202d1427589db2cf29c1bdd3c1d ] 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@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Diffstat (limited to 'net/ipv4/tcp_input.c')
0 files changed, 0 insertions, 0 deletions