diff options
author | Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> | 2016-07-23 05:33:44 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-07-25 20:23:27 +0200 |
commit | 52253db924d1480bf2543afbb9551de31381aab9 (patch) | |
tree | 19f8eb666ef960c901e3837a5b183370d53b926b /net/irda/af_irda.c | |
parent | sctp: fix BH handling on socket backlog (diff) | |
download | linux-52253db924d1480bf2543afbb9551de31381aab9.tar.xz linux-52253db924d1480bf2543afbb9551de31381aab9.zip |
sctp: also point GSO head_skb to the sk when it's available
The head skb for GSO packets won't travel through the inner depths of
SCTP stack as it doesn't contain any chunks on it. That means skb->sk
doesn't get set and then when sctp_recvmsg() calls
sctp_inet6_skb_msgname() on the head_skb it panics, as this last needs
to check flags at the socket (sp->v4mapped).
The fix is to initialize skb->sk for th head skb once we are able to do
it. That is, when the first chunk is processed.
Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/irda/af_irda.c')
0 files changed, 0 insertions, 0 deletions