From: Marek Lindner <lindner_marek@yahoo.de>
To: The list for a Better Approach To Mobile Ad-hoc Networking
<b.a.t.m.a.n@lists.open-mesh.org>
Subject: Re: [B.A.T.M.A.N.] [PATCHv3] batman-adv: don't try to re-route tt_request for me
Date: Sun, 17 Jun 2012 03:00:14 +0800 [thread overview]
Message-ID: <201206170300.14767.lindner_marek@yahoo.de> (raw)
In-Reply-To: <1339828061-15884-1-git-send-email-ordex@autistici.org>
On Saturday, June 16, 2012 14:27:41 Antonio Quartulli wrote:
> -static bool
> +static void
> batadv_send_my_tt_response(struct batadv_priv *bat_priv,
> struct batadv_tt_query_packet *tt_request)
> {
> @@ -1656,7 +1656,6 @@ batadv_send_my_tt_response(struct batadv_priv
> *bat_priv, struct batadv_neigh_node *neigh_node = NULL;
> struct batadv_hard_iface *primary_if = NULL;
> uint8_t my_ttvn, req_ttvn, ttvn;
> - int ret = false;
> unsigned char *tt_buff;
> bool full_table;
> uint16_t tt_len, tt_tot;
> @@ -1751,7 +1750,6 @@ batadv_send_my_tt_response(struct batadv_priv
> *bat_priv, batadv_inc_counter(bat_priv, BATADV_CNT_TT_RESPONSE_TX);
>
> batadv_send_skb_packet(skb, neigh_node->if_incoming,
> neigh_node->addr); - ret = true;
> goto out;
>
> unlock:
> @@ -1763,10 +1761,6 @@ out:
> batadv_neigh_node_free_ref(neigh_node);
> if (primary_if)
> batadv_hardif_free_ref(primary_if);
> - if (!ret)
> - kfree_skb(skb);
> - /* This packet was for me, so it doesn't need to be re-routed */
> - return true;
> }
Unless I am mistake you are adding a beautiful memory leak here.
Regards,
Marek
next prev parent reply other threads:[~2012-06-16 19:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-14 21:27 [B.A.T.M.A.N.] [PATCH] batman-adv: don't redirect tt_request for me Antonio Quartulli
2012-06-14 21:36 ` Antonio Quartulli
2012-06-14 21:38 ` [B.A.T.M.A.N.] [PATCHv2] batman-adv: don't reroute " Antonio Quartulli
2012-06-15 19:50 ` Marek Lindner
2012-06-15 20:20 ` Antonio Quartulli
2012-06-15 20:21 ` Antonio Quartulli
2012-06-16 6:27 ` [B.A.T.M.A.N.] [PATCHv3] batman-adv: don't try to re-route " Antonio Quartulli
2012-06-16 19:00 ` Marek Lindner [this message]
2012-06-16 22:11 ` Antonio Quartulli
2012-06-17 18:05 ` Antonio Quartulli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201206170300.14767.lindner_marek@yahoo.de \
--to=lindner_marek@yahoo.de \
--cc=b.a.t.m.a.n@lists.open-mesh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox