From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Marek Lindner Date: Thu, 5 May 2011 14:20:10 +0200 References: <1304583702-23969-1-git-send-email-ordex@autistici.org> In-Reply-To: <1304583702-23969-1-git-send-email-ordex@autistici.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <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 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). Regards, Marek