diff options
Diffstat (limited to 'net/ipv6/raw.c')
| -rw-r--r-- | net/ipv6/raw.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c index bb049f1c267..116257d59a3 100644 --- a/net/ipv6/raw.c +++ b/net/ipv6/raw.c @@ -1077,7 +1077,7 @@ static int rawv6_ioctl(struct sock *sk, int cmd, unsigned long arg)  			spin_lock_bh(&sk->sk_receive_queue.lock);  			skb = skb_peek(&sk->sk_receive_queue);  			if (skb != NULL) -				amount = skb->tail - skb->h.raw; +				amount = skb->tail - skb_transport_header(skb);  			spin_unlock_bh(&sk->sk_receive_queue.lock);  			return put_user(amount, (int __user *)arg);  		}  |