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 789719031462bfd49841f4cdc573dd27f767ce55..70bb77818deab9393b79a6499dcf0f42ecbd29e6 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;