Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;