rxrpc: Free packets discarded in data_ready
authorDavid Howells <dhowells@redhat.com>
Tue, 9 Aug 2016 15:58:42 +0000 (16:58 +0100)
committerDavid Howells <dhowells@redhat.com>
Tue, 9 Aug 2016 16:13:56 +0000 (17:13 +0100)
Under certain conditions, the data_ready handler will discard a packet.
These need to be freed.

Signed-off-by: David Howells <dhowells@redhat.com>
net/rxrpc/input.c

index 7897190..70bb778 100644 (file)
@@ -744,6 +744,8 @@ cant_route_call:
        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;