mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 22:54:01 +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
1 changed files with 2 additions and 0 deletions
|
@ -744,6 +744,8 @@ void rxrpc_data_ready(struct sock *sk)
|
|||
if (sp->hdr.type != RXRPC_PACKET_TYPE_ABORT) {
|
||||
_debug("reject type %d",sp->hdr.type);
|
||||
rxrpc_reject_packet(local, skb);
|
||||
} else {
|
||||
rxrpc_free_skb(skb);
|
||||
}
|
||||
_leave(" [no call]");
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue