Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8100744imu; Tue, 4 Dec 2018 03:01:46 -0800 (PST) X-Google-Smtp-Source: AFSGD/Wi75QAWIRo2jeNfy+2mPge+3uOjv6pfKD7fE0O6HIQELBIIqmpNec18Cy1PQCQH40UpeWQ X-Received: by 2002:a63:63c3:: with SMTP id x186mr16407029pgb.330.1543921305961; Tue, 04 Dec 2018 03:01:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543921305; cv=none; d=google.com; s=arc-20160816; b=xGASbJeB7qggWUo1UlCHHt81GGxJxgIVh9OL8waYP2257NyjbAvbVBXw++XdhuRZ0t 8JfBlJMo7JRjg0roSM9ijeEvYVjrv121/3wn3xSAZyAciuoAxG/F1Dw2K20rMhGOm38S cpluX2jYKH0j5+0ZTzSWakdhzCn6bUKn5xFq0WrXnVyHUFKd6ffwzFIZK0FWaB6tBSGF xRSvfq9S4fHwMZX9wg95d//gbBnA+kFfr4WsvQRqlw20bz1hy0UDBaqpLcnIQ0GoaIzA 0uUbZk1zS6PIXTdgBkzVGZrZopYRrUkHh4i1lgs/GwFi8vH2tj3vpZVQq7lMn3oNkcOX w8JQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=GggilNML2Oiy3Kmfcnm+0l0ZaDijp19RfmUQ0W7s6h0=; b=hBZ6eVNG4zr626ISauHzt3gBMpxO6ouLPC9ALfZ90B7vpa9BhqoV7jsOAS/V/QhiqA 1pllDz+SQlQlfalAf9XwCrwFo3mMl7NuGIQ7r9F9aTAhzOVDz6iitIsELdwwvhIq/OgS 6tPjdm3Lqwu4EAtU+e4PJb8nLTMpYvDvMLMCXlmKnvod1wMSWIjd5egt7mPrapLraPML 9nhtw/hVkXF+wNiiJRxFuEqhJSfsY2a4yJ5Lh7fIVAMN9sJWXNDBGUAyFjmoQoRHTVM4 b5nsT9yi7mMMbUrIshbaj4S6lX9yrep0kqwPXhoT+kwyDjprKmq83w2ZxLJ8LBhZ/hV0 CWcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Kk3T7Jey; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h5si15129113pgc.237.2018.12.04.03.01.30; Tue, 04 Dec 2018 03:01:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Kk3T7Jey; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727270AbeLDLAK (ORCPT + 99 others); Tue, 4 Dec 2018 06:00:10 -0500 Received: from mail.kernel.org ([198.145.29.99]:45362 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726910AbeLDLAI (ORCPT ); Tue, 4 Dec 2018 06:00:08 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4D8C5214D9; Tue, 4 Dec 2018 11:00:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543921207; bh=IptCBYLfW/2fklkdnLJYLjneCCluxFQg/agCW5XRS4g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Kk3T7JeyduSMD8N2mae2NmlnQ6FxQBn3DyEU4za4URHw1kNxM7jxS1H/8w8Xqst02 cKjQkgUlLmtSpioom9djJiHvwUQO0qsIdMGWGseYpMJi8iTQ7tzkxLb0uJm1QYZgyy 7G5PG1DrB7+LZwDdT5EX6tIIrNT1jVQQYsaFNuQ0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ludovic Desroches , Richard Genoud , Vinod Koul Subject: [PATCH 4.19 123/139] dmaengine: at_hdmac: fix module unloading Date: Tue, 4 Dec 2018 11:50:04 +0100 Message-Id: <20181204103655.762200120@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181204103649.950154335@linuxfoundation.org> References: <20181204103649.950154335@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Richard Genoud commit 77e75fda94d2ebb86aa9d35fb1860f6395bf95de upstream. of_dma_controller_free() was not called on module onloading. This lead to a soft lockup: watchdog: BUG: soft lockup - CPU#0 stuck for 23s! Modules linked in: at_hdmac [last unloaded: at_hdmac] when of_dma_request_slave_channel() tried to call ofdma->of_dma_xlate(). Cc: stable@vger.kernel.org Fixes: bbe89c8e3d59 ("at_hdmac: move to generic DMA binding") Acked-by: Ludovic Desroches Signed-off-by: Richard Genoud Signed-off-by: Vinod Koul Signed-off-by: Greg Kroah-Hartman --- drivers/dma/at_hdmac.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/dma/at_hdmac.c +++ b/drivers/dma/at_hdmac.c @@ -2006,6 +2006,8 @@ static int at_dma_remove(struct platform struct resource *io; at_dma_off(atdma); + if (pdev->dev.of_node) + of_dma_controller_free(pdev->dev.of_node); dma_async_device_unregister(&atdma->dma_common); dma_pool_destroy(atdma->memset_pool);