Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp5451914pxu; Tue, 22 Dec 2020 18:25:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJyE3y8LHNCgPcZQnHCUE+QlNw6TbTk//2dUJVDotx451uT+QmjmC5hnOIwzWuLJhYpZi/c5 X-Received: by 2002:aa7:cf85:: with SMTP id z5mr23069030edx.274.1608690319661; Tue, 22 Dec 2020 18:25:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608690319; cv=none; d=google.com; s=arc-20160816; b=DPrEAlfWP476es7+by726hUGFG8ZWOFn3q4/4qOsIG1AzoG+Z9y27H1fXUKfiaM6FS 3WSFtmXiTTyIJEA83U7AicpUySyzzexiQgd7sI6lYqS7iHBImgEdZUS3TWaj6L6GYcEH pRXKDWNXvoQjfTWm7Cx39mvo6Kgr4ogLLTQ940E8nvtDgbF6smYzcDzoclrNF493ibXf 9aDFxJfmQKTnNbrfGT+QxihSCIxR/cNF4dVikONJ5NqzvjhzkFKbVFfvzRMnpnCvHvtP MIxpUjBFeTby6Y3vRQd/RFte77dJHxd7MOs1VQtHNaRKxVXafVYvcUPPozVEYiz2sdbR J5ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=UnI/Vt9Wi1rRieZc56E53oW506moFDczabu0uh3YSYg=; b=ToVvLt0G4BCyG+weLoQ+pshKkg1YhJU/q57HF9DAq4JMgoNIlw2yqhhZW8l1nGOAqt +O8ZxIc3O7+/rU3tVMuS5serOb7VYxX53IvANGEayiifPyEr8xH57n2xeJxFyVi+dRC/ Apbln72xsNOb/rP/6FS+C2pwHBp4d+anUFLVLf+bSLoxHzl61XGJbYYQJXzr/GHYmW7y RQuMD+fE3OzDc84FB+cId7BHw+q3cq9rDtDujaIJOM66AP6X/sOwtSDkE8cPtBR/PjyP mgz8IlXXVVa8mDVYNPByer4Dcp3crFy4YSO1cR7JBU/cTqi4KD2apUyafwx0a+Aoa3p5 8aUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=crCliLiK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g5si11637468ejw.724.2020.12.22.18.24.57; Tue, 22 Dec 2020 18:25:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=crCliLiK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730015AbgLWCXc (ORCPT + 99 others); Tue, 22 Dec 2020 21:23:32 -0500 Received: from mail.kernel.org ([198.145.29.99]:52508 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728152AbgLWCXX (ORCPT ); Tue, 22 Dec 2020 21:23:23 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id D4B632333B; Wed, 23 Dec 2020 02:23:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1608690182; bh=kwr7vOqLTHit+B0tLX6e2t6x/SRPTCIFmBpxO580gAc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=crCliLiKg8k/+408wHv5HFjB99HlyEEAvHQB7Dq6TJV2dLleHzpVO4+bxKF1KqYHu I76rkBhe4YUzfI6r+29rQxCajddQPrHEVMQ1ojHSso69x0qA1j1nbQuQ3lcoYlTugu ZCItLHqvNMp6/geDKyAOr7gEfsyN4loZWm0CnK1cJhbqjeJSTbdgB//ySHc3vBM0TF ksvPN4QOuq59i35UBhf/3hhFKSzGwmWJdyaNhu+A/kfbQaFMeqH0D3ibYWeldyG6HD H0VdIrjVM3tUGkM0kgpgit6OpMGTIaaCNGnMdMjw2hSZ/GXZVHlAlf4PWUjm7kuAzI R/+ZAN1gU2WGQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Qinglang Miao , Greg Kroah-Hartman , Sasha Levin , devel@driverdev.osuosl.org Subject: [PATCH AUTOSEL 4.14 07/66] staging: ks7010: fix missing destroy_workqueue() on error in ks7010_sdio_probe Date: Tue, 22 Dec 2020 21:21:53 -0500 Message-Id: <20201223022253.2793452-7-sashal@kernel.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20201223022253.2793452-1-sashal@kernel.org> References: <20201223022253.2793452-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Qinglang Miao [ Upstream commit d1e7550ad081fa5e9260f636dd51e1c496e0fd5f ] Add the missing destroy_workqueue() before return from ks7010_sdio_probe in the error handling case. Signed-off-by: Qinglang Miao Link: https://lore.kernel.org/r/20201028091552.136445-1-miaoqinglang@huawei.com Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/staging/ks7010/ks7010_sdio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/staging/ks7010/ks7010_sdio.c b/drivers/staging/ks7010/ks7010_sdio.c index 8cfdff198334b..46d26423d3935 100644 --- a/drivers/staging/ks7010/ks7010_sdio.c +++ b/drivers/staging/ks7010/ks7010_sdio.c @@ -952,10 +952,12 @@ static int ks7010_sdio_probe(struct sdio_func *func, ret = register_netdev(priv->net_dev); if (ret) - goto err_free_netdev; + goto err_destroy_wq; return 0; + err_destroy_wq: + destroy_workqueue(priv->wq); err_free_netdev: free_netdev(priv->net_dev); card->priv = NULL; -- 2.27.0