Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2706168pxj; Mon, 31 May 2021 08:42:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNUY9SjgxHnNfVgfITKLS0GSzxYtuQzpeWLBD0O28rkoTtlglOQ+UQRXnbiUASse96Mg0P X-Received: by 2002:a17:907:b14:: with SMTP id h20mr9803484ejl.257.1622475759310; Mon, 31 May 2021 08:42:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622475759; cv=none; d=google.com; s=arc-20160816; b=O9zqROkYIPuS18r7geobYac210Qx1gc3BXC9kSyu+80cj17Lwrbj5Ub8Y9PhRrhzuq FHw4z1RTwNiKlRJj7kVde/XEN+gt3n6EuDuMI5+kM/AWm9NXAh75j9srl6y3ZD7RWebv VUKDj9HOJFC9cDJdV96UgiVBHCbJDC/X39nZjY+hwcqH0RIdz5umIT+i8Ujx23VC6tQb z4OoG0URERBcdNRrovPhnJ5g2UsZAZOF5o5mKj4JLx88c2SX5T5ix4Vqn1+kPmvPVL2t zD51Wp0lbb52zXWwPgH6vj9XmtetriQzh1yPW62Gwd+JpJprQ1ILY+Sx5d6VWgAXw13X AYfw== 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=XCdIUBQslgjHFiVJrTvjNnJFMdrDZkEhM/IUV5GFM4DQ6SeYH7GxCRw9lC/+rXRCA3 kGS1UfK0cEogHRJUM11zxM/RH780JtUdH77NdIvOH7d01/YA5rV1R9+g8b1sqBg1cgHv ZT8BHhIfwKgZkulCIwMZqQ5lyft9YrJXNajk2NMLjRMnc8zPUxv3ORfa5IIgvf2H9ilt Z+dvCdOdGZgt/8CSBJen4zCUn+YdtUR+GvmGItz8V/FwJQITftqvLBwfhOe8BO3V+iMD 3qYEQdT30GwsBujkkdF7n6lnd7YoEuqwC0UTRPsv1KOG4AiHtcJWhYhz4yC7WusGncb7 V1JQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=m64DKYU2; 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 n15si12643114edt.229.2021.05.31.08.42.15; Mon, 31 May 2021 08:42:39 -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=m64DKYU2; 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 S232977AbhEaPk0 (ORCPT + 99 others); Mon, 31 May 2021 11:40:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:48846 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231315AbhEaOXT (ORCPT ); Mon, 31 May 2021 10:23:19 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id F32F061415; Mon, 31 May 2021 13:45:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622468735; bh=jI99WAe9RVtRbs+Gt1kQRnnslk5QCXfmsL4bZR6wSPQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m64DKYU21NbKG7pGZgDLdJti3OE30ddeW0BjI+AI5UZwmxMGI7X2LQUIGC/FeMuDW ldaodvH5uLGWBLPtaBZq08jig6n6wEBK4N/LlDwniVw0AWucH8Gs6OsD+W2v6TQ/C/ +wmaHbCoE3vXzPNA/0iVopC4/DPrg1vSh2pMgjfs= 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.4 107/177] Revert "dmaengine: qcom_hidma: Check for driver register failure" Date: Mon, 31 May 2021 15:14:24 +0200 Message-Id: <20210531130651.608852954@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130647.887605866@linuxfoundation.org> References: <20210531130647.887605866@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