mirror of
https://github.com/torvalds/linux.git
synced 2025-01-01 15:51:46 +00:00
rxrpc: Free packets discarded in data_ready
Under certain conditions, the data_ready handler will discard a packet. These need to be freed. Signed-off-by: David Howells <dhowells@redhat.com>
This commit is contained in:
parent
50fd85a1f9
commit
992c273af9
@ -744,6 +744,8 @@ cant_route_call:
|
|||||||
if (sp->hdr.type != RXRPC_PACKET_TYPE_ABORT) {
|
if (sp->hdr.type != RXRPC_PACKET_TYPE_ABORT) {
|
||||||
_debug("reject type %d",sp->hdr.type);
|
_debug("reject type %d",sp->hdr.type);
|
||||||
rxrpc_reject_packet(local, skb);
|
rxrpc_reject_packet(local, skb);
|
||||||
|
} else {
|
||||||
|
rxrpc_free_skb(skb);
|
||||||
}
|
}
|
||||||
_leave(" [no call]");
|
_leave(" [no call]");
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user