netpoll: fix a missing dev refcounting
authorCong Wang <[email protected]>
Thu, 17 Jan 2013 04:21:08 +0000 (12:21 +0800)
committerDavid S. Miller <[email protected]>
Thu, 17 Jan 2013 04:33:06 +0000 (23:33 -0500)
commit5bd30d398792eb6351da2087fe81bbf755900991
tree035a97bc084cb3b7a01bce30571cbb3301953d3f
parent07f623d3b278abe88508c1c59d7c1089b4a56789
netpoll: fix a missing dev refcounting

__dev_get_by_name() doesn't refcount the network device,
so we have to do this by ourselves. Noticed by Eric.

Cc: Eric Dumazet <[email protected]>
Cc: Jiri Pirko <[email protected]>
Cc: David S. Miller <[email protected]>
Signed-off-by: Cong Wang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/core/netpoll.c