inet: fix ip_mc_drop_socket()
authorEric Dumazet <eric.dumazet@gmail.com>
Mon, 8 Nov 2010 11:15:54 +0000 (11:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Nov 2010 16:26:42 +0000 (08:26 -0800)
commit18943d292facbc70e6a36fc62399ae833f64671b
tree337c4818e0cb478a4436ee5ad8d16822998bf8eb
parentaa58163a76a3aef33c7220931543d45d0fe43753
inet: fix ip_mc_drop_socket()

commit 8723e1b4ad9be4444 (inet: RCU changes in inetdev_by_index())
forgot one call site in ip_mc_drop_socket()

We should not decrease idev refcount after inetdev_by_index() call,
since refcount is not increased anymore.

Reported-by: Markus Trippelsdorf <markus@trippelsdorf.de>
Reported-by: Miles Lane <miles.lane@gmail.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/igmp.c