Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp845754imu; Tue, 11 Dec 2018 08:26:11 -0800 (PST) X-Google-Smtp-Source: AFSGD/WiMsSENpyHA226HHd5beGs9opJ7yjD3znn2sywKtxzrTxUKf6yFr52YpP/cEZUO8E0Khge X-Received: by 2002:a17:902:d83:: with SMTP id 3mr16196380plv.43.1544545571227; Tue, 11 Dec 2018 08:26:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544545571; cv=none; d=google.com; s=arc-20160816; b=q6gi6av1mJi0MBGWqRA+wf8hPzC+UiqRfFIFhJvGxn4klnw9lv3aN6iWJo+ror9Bc9 p/bjfxA6sbn2adkBkoox/OkX4nviiYSyz2n2mpaYEQm4fO5V+lr4eVVDbwCVyhnZtQZI MAWKWYMYqsf3omPFpgJ4OGEYNdnkRVPlq0Lsrzy5OxO3e8hsO/OGADgh/lAIx4imN9Jw G6dE07dQi1ns8+IhXMHw4z53139PgBcXn2uXkKEen1DMfH9K7BdDzjnhSbo3ClZtNXtJ RzDFehL0n2qIgY4RMTdwrC5vtQ4EdweXlTzeOqVC3v0wK4HDJ831gRMMJwhhuVLa2DHd gpOA== 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=6MRQqzhHozL4hJ0LBBmXkPZ+CZFY5Wc6AzOYXsHADg0=; b=WHPNQ04TzqaFexc6YMhT5Tjf26Bq/wrM8aK78qfkF99um8OOMUpAUTLqXJyr3TkKvJ mk9mnsUTW8kkaU+40EPU6nglPIQEjdNG0bsHf6ZW4Sso6dIW4h3s+TMvTk3JUbyzS3jt QT1VtbVlQZ9Tnn2VflbypQygAWgtEIMbMuGGiZOcyihzYjk3zacZ5/LM71Z1caqolYZk 9wvqMi6LtpN9325kKdz2xPgZ6ZoJaGnPmmLCb2Pp9RFVer93XVXvPWb84w7ZDwsDWuun eqSGuzQrtUmfuf9JUKBbxJMtJLd7hxDYj/sZPPaBr6CsLPD62WsYaEeYpbWYFPs7OgoS T6Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Y7Uk4dxU; 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 x6si12185269pln.425.2018.12.11.08.25.55; Tue, 11 Dec 2018 08:26:11 -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=Y7Uk4dxU; 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 S1727615AbeLKPnp (ORCPT + 99 others); Tue, 11 Dec 2018 10:43:45 -0500 Received: from mail.kernel.org ([198.145.29.99]:60290 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727230AbeLKPnn (ORCPT ); Tue, 11 Dec 2018 10:43:43 -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 6FC2D20672; Tue, 11 Dec 2018 15:43:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544543022; bh=k1d9iG+ciuXA+a0XqECqUPBlLrrKRUH8AJUDJXOweGs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Y7Uk4dxUqXypi5SpKBRNTrl2J8n6581tQ5qdxnGTfEPvf2L9dU6nGMa8wJJyL4sGx y+DOdQrwjQsCTGk5g9uKe7HHXGisRTBe22ZBRgOVh0IOnn23ufFDroxlUb/2kY3Kbi bMc3yWRM326khlF0GuGBIdkD7RzaAWyCMp1wKaYA= 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 3.18 10/54] dmaengine: at_hdmac: fix module unloading Date: Tue, 11 Dec 2018 16:40:58 +0100 Message-Id: <20181211151546.552250582@linuxfoundation.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20181211151546.010073210@linuxfoundation.org> References: <20181211151546.010073210@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 3.18-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 @@ -1565,6 +1565,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->dma_desc_pool);