ipv4 : igmp : fix error handle in ip_mc_add_src()
authorJun Zhao <mypopydev@gmail.com>
Tue, 22 Nov 2011 17:19:03 +0000 (17:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Nov 2011 22:31:39 +0000 (17:31 -0500)
commit685f94e6db8496399c881218018166515445a914
tree1eb51c364b0f8231d182500c63dbbe2ecf97dcec
parent4d0fe50c75a547088e4304e5eb5f521514dfae46
ipv4 : igmp : fix error handle in ip_mc_add_src()

When add sources to interface failure, need to roll back the sfcount[MODE]
to before state. We need to match it corresponding.

Acked-by: David L Stevens <dlstevens@us.ibm.com>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Jun Zhao <mypopydev@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/igmp.c