From: Marek Lindner <mareklindner@neomailbox.ch>
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.] [PATCH-maint 1/2] batman-adv: Only put gw_node list reference when removed
Date: Wed, 10 Feb 2016 18:43:41 +0800 [thread overview]
Message-ID: <5358388.271e7JeB5Y@voltaire> (raw)
In-Reply-To: <1454243280-15126-1-git-send-email-sven@narfation.org>
[-- Attachment #1: Type: text/plain, Size: 1008 bytes --]
On Sunday, January 31, 2016 13:27:59 Sven Eckelmann wrote:
> The batadv_gw_node reference counter in batadv_gw_node_update can only be
> reduced when the list entry was actually removed. Otherwise the reference
> counter may reach zero when batadv_gw_node_update is called from two
> different contexts for the same gw_node but only one context is actually
> removing the entry from the list.
>
> The release function for this gw_node is not called inside the list_lock
> spinlock protected region because the function batadv_gw_node_update still
> holds a gw_node reference for the object pointer on the stack. Thus the
> actual release function (when required) will be called only at the end of
> the function.
>
> Fixes: 0511575c4d03 ("batman-adv: remove obsolete deleted attribute for
> gateway node") Signed-off-by: Sven Eckelmann <sven@narfation.org>
> ---
> net/batman-adv/gateway_client.c | 7 ++++---
> 1 file changed, 4 insertions(+), 3 deletions(-)
Applied in revision c215e4e.
Thanks,
Marek
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
prev parent reply other threads:[~2016-02-10 10:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-31 12:27 [B.A.T.M.A.N.] [PATCH-maint 1/2] batman-adv: Only put gw_node list reference when removed Sven Eckelmann
2016-01-31 12:28 ` [B.A.T.M.A.N.] [PATCH-maint 2/2] batman-adv: Only put orig_node_vlan " Sven Eckelmann
2016-02-10 10:45 ` Marek Lindner
2016-02-10 10:43 ` Marek Lindner [this message]
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=5358388.271e7JeB5Y@voltaire \
--to=mareklindner@neomailbox.ch \
--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 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.