From: RongQing.Li Date: Wed, 4 Apr 2012 16:47:04 +0000 (+0000) Subject: ipv6: fix array index in ip6_mc_add_src() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=78d50217baf36093ab320f95bae0d6452daec85c;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git ipv6: fix array index in ip6_mc_add_src() Convert array index from the loop bound to the loop index. And remove the void type conversion to ip6_mc_del1_src() return code, seem it is unnecessary, since ip6_mc_del1_src() does not use __must_check similar attribute, no compiler will report the warning when it is removed. v2: enrich the commit header Signed-off-by: RongQing.Li Signed-off-by: David S. Miller --- diff --git a/net/ipv6/mcast.c b/net/ipv6/mcast.c index 16c33e308121..b2869cab2092 100644 --- a/net/ipv6/mcast.c +++ b/net/ipv6/mcast.c @@ -2044,7 +2044,7 @@ static int ip6_mc_add_src(struct inet6_dev *idev, const struct in6_addr *pmca, if (!delta) pmc->mca_sfcount[sfmode]--; for (j=0; jmca_sfcount[MCAST_EXCLUDE] != 0)) { struct ip6_sf_list *psf;