summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2016-08-09 16:58:42 +0100
committerDavid Howells <dhowells@redhat.com>2016-08-09 17:13:56 +0100
commit992c273af9d9f12a2e470731f69bb3baa694562b (patch)
tree4bbb87b89b5e59cccfb8c55cbf459f640031cdcf /net
parent50fd85a1f94753b86a7f540794dfd4f799e81ac2 (diff)
downloadop-kernel-dev-992c273af9d9f12a2e470731f69bb3baa694562b.zip
op-kernel-dev-992c273af9d9f12a2e470731f69bb3baa694562b.tar.gz
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>
Diffstat (limited to 'net')
-rw-r--r--net/rxrpc/input.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/rxrpc/input.c b/net/rxrpc/input.c
index 7897190..70bb778 100644
--- a/net/rxrpc/input.c
+++ b/net/rxrpc/input.c
@@ -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;
OpenPOWER on IntegriCloud