diff --git a/net/sctp/input.c b/net/sctp/input.c index 64f630102532c9e3e95379458bd934902bcf2870..99c0501ca5139a67dfe375c4a996e9dbcc1c3117 100644 --- a/net/sctp/input.c +++ b/net/sctp/input.c @@ -135,6 +135,9 @@ int sctp_rcv(struct sk_buff *skb) SCTP_INC_STATS_BH(SCTP_MIB_INSCTPPACKS); + if (skb_linearize(skb)) + goto discard_it; + sh = (struct sctphdr *) skb->h.raw; /* Pull up the IP and SCTP headers. */