Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1458918 > unrolled thread

[PATCH net 6/6] rxrpc: Free packets discarded in data_ready

Started byDavid Howells <dhowells@redhat.com>
First post2016-08-09 18:40 +0200
Last post2016-08-09 18:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH net 6/6] rxrpc: Free packets discarded in data_ready David Howells <dhowells@redhat.com> - 2016-08-09 18:40 +0200

#1458918 — [PATCH net 6/6] rxrpc: Free packets discarded in data_ready

FromDavid Howells <dhowells@redhat.com>
Date2016-08-09 18:40 +0200
Subject[PATCH net 6/6] rxrpc: Free packets discarded in data_ready
Message-ID<s4iel-1Aq-7@gated-at.bofh.it>
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 |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/net/rxrpc/input.c b/net/rxrpc/input.c
index 789719031462..70bb77818dea 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;

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web