Wu Fengguang wrote: >> print some debug info would be better? > > Like this one? > + pr_debug("Empty sctp packet\n"); > > Fengguang > --- > netfilter: nf_conntrack_sctp: fix build warning > > net/netfilter/nf_conntrack_proto_sctp.c: In function ‘sctp_packet’: > net/netfilter/nf_conntrack_proto_sctp.c:376: warning: array subscript is above array bounds The warning is bogus, so we don't need a pr_debug() there. I've applied your first patch with an unlikely() added and a comment stating that the warning is bogus.