Explorar o código

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>
David Howells %!s(int64=9) %!d(string=hai) anos
pai
achega
992c273af9
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      net/rxrpc/input.c

+ 2 - 0
net/rxrpc/input.c

@@ -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;