From patchwork Thu Apr 7 20:25:58 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasily Khoruzhick X-Patchwork-Id: 693541 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 p388EDrp003611 for ; Fri, 8 Apr 2011 08:14:30 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756986Ab1DGU17 (ORCPT ); Thu, 7 Apr 2011 16:27:59 -0400 Received: from mail-fx0-f46.google.com ([209.85.161.46]:47134 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756890Ab1DGU16 (ORCPT ); Thu, 7 Apr 2011 16:27:58 -0400 Received: by mail-fx0-f46.google.com with SMTP id 17so1931585fxm.19 for ; Thu, 07 Apr 2011 13:27:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:subject:date:message-id:x-mailer :in-reply-to:references; bh=vxqz9ckTIOMlPHK2sDkRrpebecm755UeRi50mlv5hE4=; b=E+tt9YeBCD5NsE4ysXlK/ivweP2HrQSlFQV1k+tUZwj70qV2d/siy4cy0H2JqPA+S/ 20Ra9P8n+zb+YvRxVE6s18btHIupAKqVobazZH5sh/Ind2W88iIwPEBkc+VOIK5fpD0f iuU/m2dXHcveWu11rrIEZJ8xUXrU08nGrKKCI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:x-mailer:in-reply-to:references; b=I2abe92DlJl0wuH2OjQgfD69vgetuYTIG9lxGH1//+yKwWzWDVv/KzC+tt4pfL1wpU yl24GOwSv1b1mKuaJvhGsuJu/1/6KwhOXjBLTeZtoOceIkl/xYEPRU962cOYkI4OVINr 4p2/VsNb+SnMidQHo2VVyCkSkxFiupMOLGFGY= Received: by 10.223.102.129 with SMTP id g1mr241581fao.3.1302208077536; Thu, 07 Apr 2011 13:27:57 -0700 (PDT) Received: from localhost.localdomain ([193.151.40.75]) by mx.google.com with ESMTPS id l2sm587343fam.5.2011.04.07.13.27.55 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 07 Apr 2011 13:27:56 -0700 (PDT) From: Vasily Khoruzhick To: Dan Williams , "John W. Linville" , libertas-dev@lists.infradead.org, linux-wireless@vger.kernel.org, anarsoul@gmail.com Subject: [PATCH RFC 1/3] libertas_spi: cancel packet work on module removal Date: Thu, 7 Apr 2011 23:25:58 +0300 Message-Id: <1302207960-28536-2-git-send-email-anarsoul@gmail.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1302207960-28536-1-git-send-email-anarsoul@gmail.com> References: <1302207960-28536-1-git-send-email-anarsoul@gmail.com> 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.6 (demeter1.kernel.org [140.211.167.41]); Fri, 08 Apr 2011 08:14:30 +0000 (UTC) Signed-off-by: Vasily Khoruzhick Acked-by: Dan Williams --- drivers/net/wireless/libertas/if_spi.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/net/wireless/libertas/if_spi.c b/drivers/net/wireless/libertas/if_spi.c index 078ef43..d893560 100644 --- a/drivers/net/wireless/libertas/if_spi.c +++ b/drivers/net/wireless/libertas/if_spi.c @@ -1195,6 +1195,7 @@ static int __devexit libertas_spi_remove(struct spi_device *spi) lbs_remove_card(priv); /* will call free_netdev */ free_irq(spi->irq, card); + cancel_work_sync(&card->packet_work); flush_workqueue(card->workqueue); destroy_workqueue(card->workqueue); if (card->pdata->teardown)