]> git.baikalelectronics.ru Git - kernel.git/commit
netpoll: fix a missing dev refcounting
authorCong Wang <amwang@redhat.com>
Thu, 17 Jan 2013 04:21:08 +0000 (12:21 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Jan 2013 04:33:06 +0000 (23:33 -0500)
commit02ccbe1cb1793eec4b67f8785ff41f7f5487e11d
tree035a97bc084cb3b7a01bce30571cbb3301953d3f
parent1a331debb2fdf7716e5d9202d152bf0d15d92093
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 <eric.dumazet@gmail.com>
Cc: Jiri Pirko <jiri@resnulli.us>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <amwang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/netpoll.c