Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2743621pxj; Mon, 31 May 2021 09:37:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDNyM0bdeKI/psA4h4B1zBbTCNIkoDHETGKly9plVN+SH86LeKiSc0kYb66cBL5JaFC/We X-Received: by 2002:a17:906:5f93:: with SMTP id a19mr15616310eju.18.1622479054836; Mon, 31 May 2021 09:37:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622479054; cv=none; d=google.com; s=arc-20160816; b=wMvl5MywDGspkOOp7GTlVJNwMyaKgGI4oCoPJldX5WB6v6x8we7JgdD1mdx3tMeFlX m2eTumcqJdsScQMQCuFydZ7pjx5Gg09I2EmLvODwKqpM5ywt5aG7pnQLmOZ/5ZZvbr6c ODWRhG5bcWeQV381Pge32a561/5oNqJZE3nDFGMrakpBLlpOTA4tdeZAuoOoN7VcnE7z j9ltPA46zLJ5+vWnHUHRiRFShC4sEfcKNCUM/muSZ+erwju6FZrLhknuluJ0B/FztX/+ JMugKoCrjGIwkF17VhJyRi+Ymb5bv1ZEClPpwDLR6Wgo8kIdhdmalVE2hf/jxpoqJcLH Dv7Q== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Y7q/BANOFkuPx8gYOr4/i0ir/3vd0Om3ufd9CgKNh/w=; b=t8aRSY/7C7Mz1WG65jYGwo+IEXa4t3nx72kXNysco6Wuv/GRtb9WPH+ZTdDAheAdo7 t9aLYOWUT/0AzZmQCWqEtvh07+a3c4wmxIsew6AUvv2nJMzj2wG4/sCUlvOQnGvG0kwq xHw3G3EOumJei9y5XJlj20bYKLY5VHrAUmCczVryoXHQKSwFgE/3P1UF5t6QK1WvDHea 1WLwTAer08Gfw0x23W3WAOkzZsC59I6PTGXkputpnW7fj/6iECMkptQGMa7S3s+4pYgR fQ88rEbRcpgZz4h10/y3tBW1h5f5wkY7GXt6sDqow2s9xCNt4UVsAAROaTX4sxW2xi4l T9+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mTC0sCOG; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g2si12787663ejp.350.2021.05.31.09.37.11; Mon, 31 May 2021 09:37:34 -0700 (PDT) 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=@linuxfoundation.org header.s=korg header.b=mTC0sCOG; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234800AbhEaQf1 (ORCPT + 99 others); Mon, 31 May 2021 12:35:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:40254 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233263AbhEaOsk (ORCPT ); Mon, 31 May 2021 10:48:40 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 44DCC6145C; Mon, 31 May 2021 13:56:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622469399; bh=jI99WAe9RVtRbs+Gt1kQRnnslk5QCXfmsL4bZR6wSPQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mTC0sCOG4vDJ4EP+ni5c3chEDWioq9Vai/do/l9qAfILv1PDXAahZtf0Y0q+Mvvr+ I6RGzwroSE/9SHNuW/MkipLfHXelsPchABKY0kxWlevkRzfEam7F1xmbpBtqwOaCiw QnigGx5tibwtOlOqNaGWwZ+vhGTJFgRoKULeIyEg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Aditya Pakki , Vinod Koul , Sinan Kaya , Sasha Levin Subject: [PATCH 5.12 184/296] Revert "dmaengine: qcom_hidma: Check for driver register failure" Date: Mon, 31 May 2021 15:13:59 +0200 Message-Id: <20210531130710.055787064@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130703.762129381@linuxfoundation.org> References: <20210531130703.762129381@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Greg Kroah-Hartman [ Upstream commit 43ed0fcf613a87dd0221ec72d1ade4d6544f2ffc ] This reverts commit a474b3f0428d6b02a538aa10b3c3b722751cb382. Because of recent interactions with developers from @umn.edu, all commits from them have been recently re-reviewed to ensure if they were correct or not. Upon review, this commit was found to be incorrect for the reasons below, so it must be reverted. It will be fixed up "correctly" in a later kernel change. The original change is NOT correct, as it does not correctly unwind from the resources that was allocated before the call to platform_driver_register(). Cc: Aditya Pakki Acked-By: Vinod Koul Acked-By: Sinan Kaya Link: https://lore.kernel.org/r/20210503115736.2104747-51-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/dma/qcom/hidma_mgmt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/dma/qcom/hidma_mgmt.c b/drivers/dma/qcom/hidma_mgmt.c index 806ca02c52d7..fe87b01f7a4e 100644 --- a/drivers/dma/qcom/hidma_mgmt.c +++ b/drivers/dma/qcom/hidma_mgmt.c @@ -418,8 +418,9 @@ static int __init hidma_mgmt_init(void) hidma_mgmt_of_populate_channels(child); } #endif - return platform_driver_register(&hidma_mgmt_driver); + platform_driver_register(&hidma_mgmt_driver); + return 0; } module_init(hidma_mgmt_init); MODULE_LICENSE("GPL v2"); -- 2.30.2