From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Marek Lindner Date: Sun, 13 Feb 2011 22:09:46 +0100 References: <201102101525.21265.lindner_marek@yahoo.de> <1297545698-15850-2-git-send-email-linus.luessing@ascom.ch> In-Reply-To: <1297545698-15850-2-git-send-email-linus.luessing@ascom.ch> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <201102132209.47271.lindner_marek@yahoo.de> Subject: Re: [B.A.T.M.A.N.] [PATCHv2 5/7] batman-adv: Make bat_priv->curr_gw an rcu protected pointer Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: The list for a Better Approach To Mobile Ad-hoc Networking On Saturday 12 February 2011 22:21:38 Linus L=C3=BCssing wrote: > The rcu protected macros rcu_dereference() and rcu_assign_pointer() > for the bat_priv->curr_gw need to be used, as well as spin/rcu locking. >=20 > Otherwise we might end up using a curr_gw pointer pointing to already > freed memory. Applied in revision 1941. Thanks, Marek