summaryrefslogtreecommitdiffstats
path: root/tools/usb
diff options
context:
space:
mode:
authorHiroaki SHIMODA <shimoda.hiroaki@gmail.com>2012-04-15 15:26:01 +0200
committerDavid S. Miller <davem@davemloft.net>2012-04-17 05:56:36 +0200
commit890fdf2a0cb88202d1427589db2cf29c1bdd3c1d (patch)
tree554bcbfda7fccf220b41dfaf030ac1b2d3f550a8 /tools/usb
parentnet: usb: smsc75xx: fix mtu (diff)
downloadlinux-890fdf2a0cb88202d1427589db2cf29c1bdd3c1d.tar.xz
linux-890fdf2a0cb88202d1427589db2cf29c1bdd3c1d.zip
dummy: Add ndo_uninit().
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>
Diffstat (limited to 'tools/usb')
0 files changed, 0 insertions, 0 deletions