Commit 992c273a authored by David Howells's avatar David Howells

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: default avatarDavid Howells <dhowells@redhat.com>
parent 50fd85a1
...@@ -744,6 +744,8 @@ void rxrpc_data_ready(struct sock *sk) ...@@ -744,6 +744,8 @@ void rxrpc_data_ready(struct sock *sk)
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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment