* [B.A.T.M.A.N.] [PATCHv2 next] batman-adv: fix interface clean up on error
@ 2013-03-25 8:24 Antonio Quartulli
2013-03-25 10:19 ` Marek Lindner
0 siblings, 1 reply; 2+ messages in thread
From: Antonio Quartulli @ 2013-03-25 8:24 UTC (permalink / raw)
To: b.a.t.m.a.n
When enabling an hard_iface for the first time, the
hard_iface->soft_iface member is initialised with the newly
created soft_iface.
However, in case of error during the activation procedure
this member has to be set to NULL again, otherwise the
hard_iface will result busy and will not be possible to use
it anymore
This issue has been introduced with edd08535c00a42143989118bc999060893ce0a41
("batman-adv: Allow to modify slaves of soft-interfaces through rntl_link")
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
---
v2:
- based on next (the commi introducing the problem is in next, not in maint)
- added "introduced-by" in the commit message
hard-interface.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hard-interface.c b/hard-interface.c
index fd99e42..b69fe11 100644
--- a/hard-interface.c
+++ b/hard-interface.c
@@ -410,6 +410,7 @@ out:
err_upper:
netdev_upper_dev_unlink(hard_iface->net_dev, soft_iface);
err_dev:
+ hard_iface->soft_iface = NULL;
dev_put(soft_iface);
err:
batadv_hardif_free_ref(hard_iface);
--
1.8.1.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [B.A.T.M.A.N.] [PATCHv2 next] batman-adv: fix interface clean up on error
2013-03-25 8:24 [B.A.T.M.A.N.] [PATCHv2 next] batman-adv: fix interface clean up on error Antonio Quartulli
@ 2013-03-25 10:19 ` Marek Lindner
0 siblings, 0 replies; 2+ messages in thread
From: Marek Lindner @ 2013-03-25 10:19 UTC (permalink / raw)
To: b.a.t.m.a.n
On Monday, March 25, 2013 16:24:10 Antonio Quartulli wrote:
> When enabling an hard_iface for the first time, the
> hard_iface->soft_iface member is initialised with the newly
> created soft_iface.
> However, in case of error during the activation procedure
> this member has to be set to NULL again, otherwise the
> hard_iface will result busy and will not be possible to use
> it anymore
>
> This issue has been introduced with
> edd08535c00a42143989118bc999060893ce0a41 ("batman-adv: Allow to modify
> slaves of soft-interfaces through rntl_link")
>
> Signed-off-by: Antonio Quartulli <ordex@autistici.org>
> ---
>
> v2:
> - based on next (the commi introducing the problem is in next, not in
> maint) - added "introduced-by" in the commit message
>
>
> hard-interface.c | 1 +
> 1 file changed, 1 insertion(+)
Applied in revision a1eecdd.
Thanks,
Marek
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-03-25 10:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-25 8:24 [B.A.T.M.A.N.] [PATCHv2 next] batman-adv: fix interface clean up on error Antonio Quartulli
2013-03-25 10:19 ` Marek Lindner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox