Return-path: Received: from s3.sipsolutions.net ([5.9.151.49]:38603 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933329AbaJ2Pb1 (ORCPT ); Wed, 29 Oct 2014 11:31:27 -0400 Message-ID: <1414596680.1827.6.camel@jlt4.sipsolutions.net> (sfid-20141029_163149_951481_E5706819) Subject: Re: [PATCH] mac80211_hwsim: release driver when ieee80211_register_hw fails From: Johannes Berg To: Junjie Mao Cc: Martin Pitt , Fengguang Wu , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Date: Wed, 29 Oct 2014 16:31:20 +0100 In-Reply-To: <1414459907-7509-1-git-send-email-eternal.n08@gmail.com> (sfid-20141028_023301_948024_70359C07) References: <1414459907-7509-1-git-send-email-eternal.n08@gmail.com> (sfid-20141028_023301_948024_70359C07) Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Tue, 2014-10-28 at 09:31 +0800, Junjie Mao wrote: > The driver is not released when ieee80211_register_hw fails in > mac80211_hwsim_create_radio, leading to the access to the unregistered (and > possibly freed) device in platform_driver_unregister: Applied. johannes