All of lore.kernel.org
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] [PATCH] batman-adv: select an internet gateway if none was chosen
@ 2012-07-23 12:59 Marek Lindner
  2012-07-23 17:33 ` Antonio Quartulli
  0 siblings, 1 reply; 3+ messages in thread
From: Marek Lindner @ 2012-07-23 12:59 UTC (permalink / raw)
  To: b.a.t.m.a.n; +Cc: Marek Lindner

This is a regression introduced by: 6a17ecc4603be7f065c38b288d038a0082bbf21d

Reported-by: Nicolás Echániz <nicoechaniz@codigosur.org>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
---

This patch is intended for next and needs to be backported for stable.

 gateway_client.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/gateway_client.c b/gateway_client.c
index b421cc4..fc866f2 100644
--- a/gateway_client.c
+++ b/gateway_client.c
@@ -200,11 +200,11 @@ void batadv_gw_election(struct batadv_priv *bat_priv)
 	if (atomic_read(&bat_priv->gw_mode) != BATADV_GW_MODE_CLIENT)
 		goto out;
 
-	if (!batadv_atomic_dec_not_zero(&bat_priv->gw_reselect))
-		goto out;
-
 	curr_gw = batadv_gw_get_selected_gw_node(bat_priv);
 
+	if (!batadv_atomic_dec_not_zero(&bat_priv->gw_reselect) && curr_gw)
+		goto out;
+
 	next_gw = batadv_gw_get_best_gw_node(bat_priv);
 
 	if (curr_gw == next_gw)
-- 
1.7.9.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [B.A.T.M.A.N.] [PATCH] batman-adv: select an internet gateway if none was chosen
  2012-07-23 12:59 [B.A.T.M.A.N.] [PATCH] batman-adv: select an internet gateway if none was chosen Marek Lindner
@ 2012-07-23 17:33 ` Antonio Quartulli
  2012-07-26 12:45   ` Marek Lindner
  0 siblings, 1 reply; 3+ messages in thread
From: Antonio Quartulli @ 2012-07-23 17:33 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking; +Cc: Marek Lindner

[-- Attachment #1: Type: text/plain, Size: 485 bytes --]

On Mon, Jul 23, 2012 at 02:59:13PM +0200, Marek Lindner wrote:
> This is a regression introduced by: 6a17ecc4603be7f065c38b288d038a0082bbf21d
> 
> Reported-by: Nicolás Echániz <nicoechaniz@codigosur.org>
> Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
> ---


Thank you Marek for fixing bugs that I silently introduce :)

Acked-by: Antonio Quartulli <ordex@autistici.org>


-- 
Antonio Quartulli

..each of us alone is worth nothing..
Ernesto "Che" Guevara

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [B.A.T.M.A.N.] [PATCH] batman-adv: select an internet gateway if none was chosen
  2012-07-23 17:33 ` Antonio Quartulli
@ 2012-07-26 12:45   ` Marek Lindner
  0 siblings, 0 replies; 3+ messages in thread
From: Marek Lindner @ 2012-07-26 12:45 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

On Monday, July 23, 2012 19:33:56 Antonio Quartulli wrote:
> On Mon, Jul 23, 2012 at 02:59:13PM +0200, Marek Lindner wrote:
> > This is a regression introduced by:
> > 6a17ecc4603be7f065c38b288d038a0082bbf21d
> >
> > 
> >
> > Reported-by: Nicolás Echániz <nicoechaniz@codigosur.org>
> > Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
> > ---
> 
> Thank you Marek for fixing bugs that I silently introduce :)
> 
> Acked-by: Antonio Quartulli <ordex@autistici.org>

Applied in revision 8c379dc.

Regards,
Marek

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-07-26 12:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-23 12:59 [B.A.T.M.A.N.] [PATCH] batman-adv: select an internet gateway if none was chosen Marek Lindner
2012-07-23 17:33 ` Antonio Quartulli
2012-07-26 12:45   ` Marek Lindner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.