From patchwork Wed Nov 24 16:00:49 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Drake X-Patchwork-Id: 353271 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oAOG0vkj003378 for ; Wed, 24 Nov 2010 16:00:59 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752960Ab0KXQAz (ORCPT ); Wed, 24 Nov 2010 11:00:55 -0500 Received: from mtaout02-winn.ispmail.ntl.com ([81.103.221.48]:2326 "EHLO mtaout02-winn.ispmail.ntl.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750868Ab0KXQAy (ORCPT ); Wed, 24 Nov 2010 11:00:54 -0500 Received: from aamtaout03-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout02-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20101124160053.UUWH19887.mtaout02-winn.ispmail.ntl.com@aamtaout03-winn.ispmail.ntl.com>; Wed, 24 Nov 2010 16:00:53 +0000 Received: from zog.reactivated.net ([86.14.215.141]) by aamtaout03-winn.ispmail.ntl.com (InterMail vG.3.00.04.00 201-2196-133-20080908) with ESMTP id <20101124160052.FSVW28282.aamtaout03-winn.ispmail.ntl.com@zog.reactivated.net>; Wed, 24 Nov 2010 16:00:52 +0000 Received: by zog.reactivated.net (Postfix, from userid 1000) id 8058D9D401B; Wed, 24 Nov 2010 16:00:49 +0000 (GMT) From: Daniel Drake To: linville@tuxdriver.com Cc: hs4233@mail.mn-solutions.de Cc: dcbw@redhat.com Cc: linux-wireless@vger.kernel.org Cc: libertas-dev@lists.infradead.org Subject: [PATCH 1/2] libertas: fix memory corruption in lbs_remove_card() Message-Id: <20101124160049.8058D9D401B@zog.reactivated.net> Date: Wed, 24 Nov 2010 16:00:49 +0000 (GMT) X-Cloudmark-Analysis: v=1.1 cv=X0sWjjQ37bMP4yB/pNNinY3VxVB2n/hmdAjhihaCFGs= c=1 sm=0 a=bt3QO4Pat9oA:10 a=Op-mwl0xAAAA:8 a=QCHxbmGdI7u7x64rL_wA:9 a=rnRWtG0WvZjqPIwOCcEA:7 a=n0C0aVMLCI34BhOfGPkGQRDASFwA:4 a=d4CUUju0HPYA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Wed, 24 Nov 2010 16:00:59 +0000 (UTC) diff --git a/drivers/net/wireless/libertas/main.c b/drivers/net/wireless/libertas/main.c index 46b88b1..fcd1bbf 100644 --- a/drivers/net/wireless/libertas/main.c +++ b/drivers/net/wireless/libertas/main.c @@ -915,8 +915,6 @@ void lbs_remove_card(struct lbs_private *priv) lbs_free_adapter(priv); lbs_cfg_free(priv); - - priv->dev = NULL; free_netdev(dev); lbs_deb_leave(LBS_DEB_MAIN);