diff options
Diffstat (limited to 'net/key/af_key.c')
-rw-r--r-- | net/key/af_key.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/key/af_key.c b/net/key/af_key.c index 345019345f09..a99444142dc7 100644 --- a/net/key/af_key.c +++ b/net/key/af_key.c | |||
@@ -379,7 +379,7 @@ static int verify_address_len(void *p) | |||
379 | */ | 379 | */ |
380 | return -EINVAL; | 380 | return -EINVAL; |
381 | break; | 381 | break; |
382 | }; | 382 | } |
383 | 383 | ||
384 | return 0; | 384 | return 0; |
385 | } | 385 | } |
@@ -3667,7 +3667,7 @@ static int pfkey_recvmsg(struct kiocb *kiocb, | |||
3667 | copied = len; | 3667 | copied = len; |
3668 | } | 3668 | } |
3669 | 3669 | ||
3670 | skb->h.raw = skb->data; | 3670 | skb_reset_transport_header(skb); |
3671 | err = skb_copy_datagram_iovec(skb, 0, msg->msg_iov, copied); | 3671 | err = skb_copy_datagram_iovec(skb, 0, msg->msg_iov, copied); |
3672 | if (err) | 3672 | if (err) |
3673 | goto out_free; | 3673 | goto out_free; |