From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 737BB11C83 for ; Mon, 28 Aug 2023 10:26:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E376CC433D9; Mon, 28 Aug 2023 10:26:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1693218388; bh=XclWSBEc/VSR+Fqd+LhPFrSWgR9z8Mr2UIByx43GkVc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NXsLS1ll5Xe6K21ehSDVIoPUkVdVnFi5aWomWugTJrDdXdOAGCF9EZjV+setRfwdd LEESTkiNLBGnGy2D1C9kzjk0z6B7Bpyx2JI92Yds8ib8KxN+FG/MGPohVaFvYUoVZW oXteFVqwcd9SgjZ7XGWW0kPJ7NO0KPoGjS+PUtgg= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Yang Yingliang , Ulf Hansson Subject: [PATCH 4.19 070/129] mmc: wbsd: fix double mmc_free_host() in wbsd_init() Date: Mon, 28 Aug 2023 12:12:44 +0200 Message-ID: <20230828101155.907083823@linuxfoundation.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20230828101153.030066927@linuxfoundation.org> References: <20230828101153.030066927@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Yang Yingliang commit d83035433701919ac6db15f7737cbf554c36c1a6 upstream. mmc_free_host() has already be called in wbsd_free_mmc(), remove the mmc_free_host() in error path in wbsd_init(). Fixes: dc5b9b50fc9d ("mmc: wbsd: fix return value check of mmc_add_host()") Signed-off-by: Yang Yingliang Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20230807124443.3431366-1-yangyingliang@huawei.com Signed-off-by: Ulf Hansson Signed-off-by: Greg Kroah-Hartman --- drivers/mmc/host/wbsd.c | 2 -- 1 file changed, 2 deletions(-) --- a/drivers/mmc/host/wbsd.c +++ b/drivers/mmc/host/wbsd.c @@ -1713,8 +1713,6 @@ static int wbsd_init(struct device *dev, wbsd_release_resources(host); wbsd_free_mmc(dev); - - mmc_free_host(mmc); return ret; }