Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2670630pxj; Mon, 31 May 2021 07:54:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfU1D2cRcJ45Qhr5gGqoLEjzeqFIp2+lnhdGayBCZ+V9prhcyJJkqEvHObe0HVn3YWJ/Zu X-Received: by 2002:a02:7110:: with SMTP id n16mr20825333jac.69.1622472862542; Mon, 31 May 2021 07:54:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622472862; cv=none; d=google.com; s=arc-20160816; b=txjojmNuZYJcGz3A5ZSdCwyfkvyut7Vn33xQwKRsBIrcNSIfvJM2EylP8qx4tAB7uH 2/pY6NNHhWV/ce5alWKUK2jhjIaiBEnyd5615FPa3fXuY+9Yxic5tsCZsRVymFHW8PQt e4gnYzPnTZ9eF6wl1zxb0x+tjyzM8CC7E99UhlMw23UKsGcbgV0FjvpRJyIpjPZjwtnj 3SgFgo9LBYsOqKLlpYZ456/F/FR3hN3AUtBx7PifLryylQ//zMEeUe1h5zkmfr5hVgN2 zfMg5iutXubmt8x3erQzMRMSxEiEshY/ySCrypOFi/+OAcUy1Q5yci387XdrelCBGQAm 5q6A== 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=tKvV3dXm+iieHn8Oz+ARtUbI4uFCUKW9PAZbnwt0UoAo4UO4qumPIJ5iVXYoouCAs3 reNTf/IeyAZZ2OsyZVZoc9CYfiCBp5M+d7PfzEaU6yX7gU4KtlZviqv0dafDHi6PRYMQ adLgfMta3+SJdQjZiW85LezEcOTwn3CIxjdWrzO7G42OpLsDhh5Tj6L7Y30LNMOD3cHQ J0qX1dwn3yxAWw8E18pUv6bEWVPqZ4vS+756viewEKI7s1gHRfaYQjOj5hfwj/h2KOTF hPhNOYczpuJ8QpdW7Yf31880zXxaBxcIaTVoFSRvmZGhhHijyCTOrKhV+AbKjJA6lOGg KnwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JOFL2lJu; 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 a7si4612699ilr.20.2021.05.31.07.54.09; Mon, 31 May 2021 07:54:22 -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=JOFL2lJu; 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 S234325AbhEaOy5 (ORCPT + 99 others); Mon, 31 May 2021 10:54:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:37362 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232066AbhEaODz (ORCPT ); Mon, 31 May 2021 10:03:55 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 78166613CD; Mon, 31 May 2021 13:37:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622468272; bh=jI99WAe9RVtRbs+Gt1kQRnnslk5QCXfmsL4bZR6wSPQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JOFL2lJuP6soR5oyqMMoAzNs5pkKrR97Ggac/HHkbnVrzNVZZvv6/2/Vct51V5ibY qYxcuaiXNhygy9Rn6w8yq+4L1J1qGSdEucyNdc4jpx+/ySeuvLT7nwlnz9FEnPmeAL 0b4MyaN/FP2pmnUYJuF5J2XuTtPVY0X/UoPzfl2M= 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.10 154/252] Revert "dmaengine: qcom_hidma: Check for driver register failure" Date: Mon, 31 May 2021 15:13:39 +0200 Message-Id: <20210531130703.237192642@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130657.971257589@linuxfoundation.org> References: <20210531130657.971257589@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