aboutsummaryrefslogtreecommitdiffstats
path: root/net/x25/af_x25.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/x25/af_x25.c')
-rw-r--r--net/x25/af_x25.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/x25/af_x25.c b/net/x25/af_x25.c
index a19884315622..fc713059ccdd 100644
--- a/net/x25/af_x25.c
+++ b/net/x25/af_x25.c
@@ -1210,8 +1210,7 @@ static int x25_recvmsg(struct kiocb *iocb, struct socket *sock,
1210 } 1210 }
1211 } 1211 }
1212 1212
1213 skb->h.raw = skb->data; 1213 skb_reset_transport_header(skb);
1214
1215 copied = skb->len; 1214 copied = skb->len;
1216 1215
1217 if (copied > size) { 1216 if (copied > size) {