[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20120401.151318.984514868716173152.davem@davemloft.net>
Date: Sun, 01 Apr 2012 15:13:18 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: roy.qing.li@...il.com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH] ipv6: fix array index in ip6_mc_add_src()
From: roy.qing.li@...il.com
Date: Sun, 1 Apr 2012 16:45:26 +0800
> From: RongQing.Li <roy.qing.li@...il.com>
>
> Convert array index from the loop bound to the loop index.
>
> Signed-off-by: RongQing.Li <roy.qing.li@...il.com>
That's not all you are doing:
> - (void) ip6_mc_del1_src(pmc, sfmode, &psfsrc[i]);
> + ip6_mc_del1_src(pmc, sfmode, &psfsrc[j]);
You absolutely MUST mention and explain this (void) removal.
It's probably there to elide an unchecked return value
warning from the compiler.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists