* [B.A.T.M.A.N.] [PATCH] batman-adv: fix memory leak when dropping packet from other gateway
@ 2017-05-19 8:01 Sven Eckelmann
2017-05-19 10:40 ` Sven Eckelmann
0 siblings, 1 reply; 2+ messages in thread
From: Sven Eckelmann @ 2017-05-19 8:01 UTC (permalink / raw)
To: b.a.t.m.a.n
From: Andreas Pape <apape@phoenixcontact.com>
This patch fixes a memory leak introduced with commit "batman-adv:
drop unicast packets from other backbone gw".
Fixes: bfe2a1971f43 ("batman-adv: drop unicast packets from other backbone gw")
Signed-off-by: Andreas Pape <apape@phoenixcontact.com>
---
net/batman-adv/routing.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/batman-adv/routing.c b/net/batman-adv/routing.c
index e1ebe14..ae9f4d3 100644
--- a/net/batman-adv/routing.c
+++ b/net/batman-adv/routing.c
@@ -987,7 +987,7 @@ int batadv_recv_unicast_packet(struct sk_buff *skb,
batadv_dbg(BATADV_DBG_BLA, bat_priv,
"recv_unicast_packet(): Dropped unicast pkt received from another backbone gw %pM.\n",
orig_addr_gw);
- return NET_RX_DROP;
+ goto free_skb;
}
}
--
1.7.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [B.A.T.M.A.N.] [PATCH] batman-adv: fix memory leak when dropping packet from other gateway
2017-05-19 8:01 [B.A.T.M.A.N.] [PATCH] batman-adv: fix memory leak when dropping packet from other gateway Sven Eckelmann
@ 2017-05-19 10:40 ` Sven Eckelmann
0 siblings, 0 replies; 2+ messages in thread
From: Sven Eckelmann @ 2017-05-19 10:40 UTC (permalink / raw)
To: b.a.t.m.a.n
[-- Attachment #1: Type: text/plain, Size: 638 bytes --]
On Freitag, 19. Mai 2017 10:01:42 CEST Sven Eckelmann wrote:
> From: Andreas Pape <apape@phoenixcontact.com>
>
> This patch fixes a memory leak introduced with commit "batman-adv:
> drop unicast packets from other backbone gw".
>
> Fixes: bfe2a1971f43 ("batman-adv: drop unicast packets from other backbone gw")
> Signed-off-by: Andreas Pape <apape@phoenixcontact.com>
> ---
> net/batman-adv/routing.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
Patch applied as a58feb79ed1447e3e83f3b0b1a23779886869f39 [1]
Thanks,
Sven
[1] https://git.open-mesh.org/batman-adv.git/commit/a58feb79ed1447e3e83f3b0b1a23779886869f39
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-05-19 10:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-19 8:01 [B.A.T.M.A.N.] [PATCH] batman-adv: fix memory leak when dropping packet from other gateway Sven Eckelmann
2017-05-19 10:40 ` Sven Eckelmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).