From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sun, 8 May 2011 20:44:40 +0200 From: Antonio Quartulli Message-ID: <20110508184431.GA4631@ritirata.org> References: <1304583702-23969-1-git-send-email-ordex@autistici.org> <201105051420.10634.lindner_marek@yahoo.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <201105051420.10634.lindner_marek@yahoo.de> Subject: Re: [B.A.T.M.A.N.] [PATCH] batman-adv: move neigh_node->if_incoming->if_status check in find_router() 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 gio, mag 05, 2011 at 02:20:10 +0200, Marek Lindner wrote: > On Thursday 05 May 2011 10:21:42 Antonio Quartulli wrote: > > return_router: > > + if (router && router->if_incoming->if_status != IF_ACTIVE) > > + router = NULL; > > + > > rcu_read_unlock(); > > return router; > > You are breaking the reference counting of 'router' here. While looking at > your patch I found another refcount imbalance. Check the patch I just posted > (Fix refcount imbalance in find_router). I see :) And thanks for reviewing. Regards, -- Antonio Quartulli ..each of us alone is worth nothing.. Ernesto "Che" Guevara