From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Marek Lindner Date: Wed, 9 Nov 2011 02:38:34 +0800 References: <1320670668-26961-1-git-send-email-siwu@hrz.tu-chemnitz.de> In-Reply-To: <1320670668-26961-1-git-send-email-siwu@hrz.tu-chemnitz.de> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201111090238.34584.lindner_marek@yahoo.de> Subject: Re: [B.A.T.M.A.N.] [PATCH] batman-adv: use unregister_netdevice() when softif_create fails 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 Monday, November 07, 2011 20:57:48 Simon Wunderlich wrote: > When entering softif_create(), the rtnl lock has already been acquired > by store_mesh_iface(). > (store_mesh_iface() -> hardif_enable_interface() -> softif_create) > > In case of an error, we should therefore call unregister_netdevice() > instead of unregister_netdev(). > > unregister_netdev() tries to acquire the rtnl lock itself and deadlocks > in this situation. unregister_netdevice() assumes that the rtnl lock > is already been held. Applied in revision c103efd. Thanks, Marek