rxrpc: Fix misplaced traceline
There's a misplaced traceline in rxrpc_input_packet() which is looking at a
packet that just got released rather than the replacement packet.
Fix this by moving the traceline after the assignment that moves the new
packet pointer to the actual packet pointer.
Fixes: d0d5c0cd1e
("rxrpc: Use skb_unshare() rather than skb_cow_data()")
Reported-by: Hillf Danton <hdanton@sina.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
d471c6f774
commit
591328948b
|
@ -1262,8 +1262,8 @@ int rxrpc_input_packet(struct sock *udp_sk, struct sk_buff *skb)
|
||||||
|
|
||||||
if (nskb != skb) {
|
if (nskb != skb) {
|
||||||
rxrpc_eaten_skb(skb, rxrpc_skb_received);
|
rxrpc_eaten_skb(skb, rxrpc_skb_received);
|
||||||
rxrpc_new_skb(skb, rxrpc_skb_unshared);
|
|
||||||
skb = nskb;
|
skb = nskb;
|
||||||
|
rxrpc_new_skb(skb, rxrpc_skb_unshared);
|
||||||
sp = rxrpc_skb(skb);
|
sp = rxrpc_skb(skb);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue