Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8109371imu; Tue, 4 Dec 2018 03:09:37 -0800 (PST) X-Google-Smtp-Source: AFSGD/UPU6dudeP5/k5xgplW3wIT8Dgz1xMYM9CPH6E9nrMjK9W9370/ynqMU63fYvROnO5XVgTi X-Received: by 2002:a17:902:292b:: with SMTP id g40mr19917533plb.82.1543921777471; Tue, 04 Dec 2018 03:09:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543921777; cv=none; d=google.com; s=arc-20160816; b=DMGKM25JuYfRrHvISLCpQugq7vO7/2CjPtoTir0ql7fs+nYEAUTBFaP9mkf9DgQbM6 9OWJTKgDUQb7gaz15wYJfBxwf56Hdz/DSUwu81B51nJ+sye9LfcQ43VRGC0oErsSiUFI 5H4ihRkc/S34TBjLhj9xcX0tn3hqE8elVbR7KGe41u0rKg7kxqK0uAXXN/ItvcW7hS9Q YkqTkqjnd3GB1sf7MlkPAbpalFrcZOy2vZwvWlv2kZs+LkWoJXcsHA5oagtFUSjElcA+ hm0LKaDiHrhfW/tsw168qmOg+//boZpWE93qSEAHWlmr2pMBRA0o6BIJeIjaIehtdQOW gU+Q== 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=go3etedjwkQxbJjP1tdDr0sgNx+Stfb2EnWFCd7Tgl8=; b=tYoV6vou9+D5szDBv2lz2EK85NMRVydAI7atq1eeGQ4drmVUotsYwMb6C7O/D1gpHg u6u1Chzd3yIGMeHBUd+jX7SP8tgvRnNCsNYZDfvZXhvVkIQV40d/4OVWYbRDA9ISqT3A leBa9AzHFGZB+HEVTexNhk16vYsyWTzMlq+9alr3hF89ctDdZOSkAFeS4y5loyCBiP7W NrKmkNz5+jBunWKju4MSQ7RH9sKLWrvWaH5B0VQ8S5CtfSGliwEKTBV4OrJxZS7eu7gF ExkHxysI+HEjqODYSl0qsc60SLqWF2VCm7dHXM8KhRO5xn9Kmv2E4DV1ocwD+qsQ7GWZ UICQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=w+c4ttmk; 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 j66si18517634pfb.182.2018.12.04.03.09.22; Tue, 04 Dec 2018 03:09:37 -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=w+c4ttmk; 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 S1728681AbeLDLIr (ORCPT + 99 others); Tue, 4 Dec 2018 06:08:47 -0500 Received: from mail.kernel.org ([198.145.29.99]:58308 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728668AbeLDLIq (ORCPT ); Tue, 4 Dec 2018 06:08:46 -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 34F2D2082D; Tue, 4 Dec 2018 11:08:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543921725; bh=bOIao+olYLYyABmYqJc8tV4+ouINfHkSwEBYK/FNU1M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=w+c4ttmkEDzqZ/ZuQYQOWJdiSzmehq/alYFiFuidb/Q1/v5ceqxBRNF7LBWnK4m6B j6kyXRbnR5McOeDysP2lEbLl61liKj8dibFIhSW13R4zOMibXc8J3umFiPI5hazPtR BVU3pH+e5AVPPfvct8WZuOVojVdJ1meE1It4gF9A= 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.9 34/50] dmaengine: at_hdmac: fix module unloading Date: Tue, 4 Dec 2018 11:50:29 +0100 Message-Id: <20181204103716.206082359@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181204103714.485546262@linuxfoundation.org> References: <20181204103714.485546262@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.9-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 @@ -2145,6 +2145,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);