aboutsummaryrefslogtreecommitdiffstats
path: root/net/rose/af_rose.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/rose/af_rose.c')
-rw-r--r--net/rose/af_rose.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/rose/af_rose.c b/net/rose/af_rose.c
index 6d8684a11ac6..1511697b22ba 100644
--- a/net/rose/af_rose.c
+++ b/net/rose/af_rose.c
@@ -1105,9 +1105,10 @@ static int rose_sendmsg(struct kiocb *iocb, struct socket *sock,
1105 */ 1105 */
1106 SOCK_DEBUG(sk, "ROSE: Appending user data\n"); 1106 SOCK_DEBUG(sk, "ROSE: Appending user data\n");
1107 1107
1108 asmptr = skb->h.raw = skb_put(skb, len); 1108 skb_reset_transport_header(skb);
1109 skb_put(skb, len);
1109 1110
1110 err = memcpy_fromiovec(asmptr, msg->msg_iov, len); 1111 err = memcpy_fromiovec(skb_transport_header(skb), msg->msg_iov, len);
1111 if (err) { 1112 if (err) {
1112 kfree_skb(skb); 1113 kfree_skb(skb);
1113 return err; 1114 return err;