Message ID | 20191004123606.17241-1-patrice.chotard@st.com (mailing list archive) |
---|---|
State | Mainlined |
Commit | 3c0af1dd2fe78adc02fe21f6cfe7d6cb8602573e |
Headers | show
Return-Path: <SRS0=D5dO=X5=lists.infradead.org=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5A3E2112B for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 4 Oct 2019 12:36:50 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3754621D81 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 4 Oct 2019 12:36:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="PDdoUr+A"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=st.com header.i=@st.com header.b="lPZEwKmW" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3754621D81 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=st.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Nh3Lx2c11eFyDPkwz8F6HRnLF/NUdm8fOG3TSZNXc+E=; b=PDdoUr+AcxQ1T2 8VHMqrtPD0yiNnV3+r93lqOo02QvnSxd7sMWmNTxzngcp5YFvOxAWRrS7wOC3kHKiA9f6sv7CZWj/ 9kO8Vo/K5wwv/XHhad6CCC0n5wWjOq2d3ULyiYqKFW+Cva+B2NTCZKBNtMBi98+zL579bUcuukqb/ DDMY1YA1VqKnCH5dcL6V8pUcYqAC9LYi2jIRQiK+Ggt1IQGIMaslq2/D2DxA0kmHNfkQZVMCFbAg5 v2rpPo+ti9Mnb/GN/dpF0EGwfpOB2hwZeNP1g10h+NiefZ0fs4atacai0BmLsR7tU8p6Q50yyLdCi tnGxUPPQMdq1RjVXWSDw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.2 #3 (Red Hat Linux)) id 1iGMpE-0006Aw-QP; Fri, 04 Oct 2019 12:36:48 +0000 Received: from mx08-00178001.pphosted.com ([91.207.212.93] helo=mx07-00178001.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.92.2 #3 (Red Hat Linux)) id 1iGMpB-0006AG-JU for linux-arm-kernel@lists.infradead.org; Fri, 04 Oct 2019 12:36:47 +0000 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x94CVOIe004226; Fri, 4 Oct 2019 14:36:39 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=STMicroelectronics; bh=9oA5AaxTGlvSCA+7kZhQxAjTz3xyBtquAeFvHIm8KXc=; b=lPZEwKmWqL0/3sPobA7eCwmlggVdc4mJ//JQIIHjMQK7A+KY/9s63aLyUBP0eT92e58Q wu+17Fw1miP4WeIKbKf1gyI/PVFy1i86aDnm8zsEugorFln895ATpMPgw8fGXET4qG4/ C/I/eqAgF8tPn2TCIpOKoeTie6iqKWEtt1X/WrWtzXDR6Chlm3diZPDrU4kRB1UflV8J +8trZZgK4mBsm9AD0C9cy0W/S8cCYwkh0fqvnIGLVzRvrZ0fAQgLKGLXchoU8h3eWM0+ +uywHBfdbwmS1vFbGicNfu2gpkstYcv+om57115Iu27Eb954Ry4nsyMDT6WXa+XFwck6 ew== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2v9xdham10-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 04 Oct 2019 14:36:39 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id BF69810002A; Fri, 4 Oct 2019 14:36:37 +0200 (CEST) Received: from Webmail-eu.st.com (Safex1hubcas22.st.com [10.75.90.92]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id B18A02BE246; Fri, 4 Oct 2019 14:36:37 +0200 (CEST) Received: from SAFEX1HUBCAS23.st.com (10.75.90.46) by Safex1hubcas22.st.com (10.75.90.92) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 4 Oct 2019 14:36:37 +0200 Received: from localhost (10.201.23.73) by webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 4 Oct 2019 14:36:36 +0200 From: <patrice.chotard@st.com> To: Mark Brown <broonie@kernel.org>, Alexandre Torgue <alexandre.torgue@st.com> Subject: spi: stm32-qspi: Fix kernel oops when unbinding driver Date: Fri, 4 Oct 2019 14:36:06 +0200 Message-ID: <20191004123606.17241-1-patrice.chotard@st.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.201.23.73] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,1.0.8 definitions=2019-10-04_06:2019-10-03,2019-10-04 signatures=0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191004_053645_929043_09366BB1 X-CRM114-Status: GOOD ( 16.74 ) X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [91.207.212.93 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Patrice Chotard <patrice.chotard@st.com>, mcoquelin.stm32@gmail.com, linux-spi@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org |
Series |
spi: stm32-qspi: Fix kernel oops when unbinding driver
|
expand
|
diff --git a/drivers/spi/spi-stm32-qspi.c b/drivers/spi/spi-stm32-qspi.c index 9ac6f9fe13cf..4e726929bb4f 100644 --- a/drivers/spi/spi-stm32-qspi.c +++ b/drivers/spi/spi-stm32-qspi.c @@ -528,7 +528,6 @@ static void stm32_qspi_release(struct stm32_qspi *qspi) stm32_qspi_dma_free(qspi); mutex_destroy(&qspi->lock); clk_disable_unprepare(qspi->clk); - spi_master_put(qspi->ctrl); } static int stm32_qspi_probe(struct platform_device *pdev) @@ -626,6 +625,8 @@ static int stm32_qspi_probe(struct platform_device *pdev) err: stm32_qspi_release(qspi); + spi_master_put(qspi->ctrl); + return ret; }