]> git.baikalelectronics.ru Git - kernel.git/commit
ipvs: off by one in set_sctp_state()
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 20 Apr 2013 11:24:55 +0000 (14:24 +0300)
committerSimon Horman <horms@verge.net.au>
Tue, 23 Apr 2013 02:43:06 +0000 (11:43 +0900)
commitf0103db09caaa7568d02fcd36a3a63a595cf9509
treec78fc7a814453f3451c82916ead928f105306997
parent9399240331c8fa8dab0d81fec1d543382744e894
ipvs: off by one in set_sctp_state()

The sctp_events[] come from sch->type in set_sctp_state().  They are
between 0-255 so that means we need 256 elements in the array.

I believe that because of how the code is aligned there is normally a
hole after sctp_events[] so this patch doesn't actually change anything.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Simon Horman <horms@verge.net.au>
net/netfilter/ipvs/ip_vs_proto_sctp.c