icmp: icmp_send() can avoid a dev_put()
authorEric Dumazet <eric.dumazet@gmail.com>
Sun, 1 Nov 2009 19:31:03 +0000 (19:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Nov 2009 07:55:10 +0000 (23:55 -0800)
commit685c7944055b9de51ff509719070afae92b3dbe1
tree5aeb11059fbfd1d8dd70953d1d5f93501f246121
parentc148fc2e30c988f7e3ac91738b2c03f1cef44849
icmp: icmp_send() can avoid a dev_put()

We can avoid touching device refcount in icmp_send(),
using dev_get_by_index_rcu()

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/icmp.c