Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp421138ybi; Tue, 2 Jul 2019 22:56:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqwHP3iUXZf/KZwtytg/xsztpJrHRkULTLQOaeCZXJwRozVnt1GY+QfYHzd9wd/7Uayktdcn X-Received: by 2002:a17:90a:258b:: with SMTP id k11mr10027729pje.110.1562133399772; Tue, 02 Jul 2019 22:56:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562133399; cv=none; d=google.com; s=arc-20160816; b=NOjG+zQ/hjI3miwW7TLb9QaYF8YZZTXhnvH1O67misVBpEuL5GMjbHgFOi8z9hT+x9 hHK5p0KTbImEN48P2rA/Qmf/9pVFIyPK0tWwmPuhE7Kgk047l/w0aI7Sb5MRPys45CoM 6KtKk2xvC2etB30ufbvQZ7TuI2pbyBBtMOUi5A64O12UHHqfrnbHmqCabmDnOYGtx+Q5 +GHp+VQAupXoXd8UX2ysg4SERR8Z8uncLnOu1I9O5Nh7IMdwOkNuqey4n8/PfJpRAf0K 552niQ1WL9oWjLR2v9TLTjLQttweqZJb89HGddYPh4gDpeUchcA4/w0AjHprAN2ZANXw HnFA== 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 :message-id:date:subject:cc:to:from; bh=bWwlGjkBFZ+sF06TB9uDJG4r/4K7NcOT2n5rU7NudDo=; b=Sj5Wo1AoYirr5ADe3u9QeoCLzs78l3a1aOczWTJwsbdGiG6xg3vT+gEDtAgZ59MRzZ lIwfCpOxAXP50zC1hJJbwYJKDeg0SUOEaO52ZjzvBVXluCIbCJckjRAxIUTeCQi/x/nq R/FmnH9LTqPZa4ctOM9i6fvi30ntI0Gd9UmRAwyPBAQTCa2cchvUMwzhcot5CSv/c1R/ KvSfQFXVUS/D0WVJpgCNWf+y9WasV90sILQPpdt4l5hSy3sbU8ZWEmNxnd5mBBKHwVvO nRvOfdKLA7sPn5jq/1g+gthSBGPlGYeutidu32cjDU19GbijeNKQTFRg3TYvw4AlbOax WD+w== ARC-Authentication-Results: i=1; mx.google.com; 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 q4si1294552pfg.286.2019.07.02.22.56.13; Tue, 02 Jul 2019 22:56:39 -0700 (PDT) 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; 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 S1727004AbfGCFxV (ORCPT + 99 others); Wed, 3 Jul 2019 01:53:21 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:8130 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725927AbfGCFxV (ORCPT ); Wed, 3 Jul 2019 01:53:21 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 60FD3EDEC9C4AF337995; Wed, 3 Jul 2019 13:53:18 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.439.0; Wed, 3 Jul 2019 13:53:10 +0800 From: Wei Yongjun To: Guan Xuetao , Kate Stewart , Greg Kroah-Hartman , Thomas Gleixner , Enrico Weigelt , Allison Randal , GuanXuetao CC: Wei Yongjun , , Subject: [PATCH] unicore32: dma: fix to pass correct device identity to free_irq() Date: Wed, 3 Jul 2019 05:59:43 +0000 Message-ID: <20190703055943.141542-1-weiyongjun1@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org free_irq() expects the same device identity that was passed to corresponding request_irq(), otherwise the IRQ is not freed. Fixes: 10c9c10c3151 ("unicore32 core architecture: mm related: consistent device DMA handling") Signed-off-by: Wei Yongjun --- arch/unicore32/kernel/dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/unicore32/kernel/dma.c b/arch/unicore32/kernel/dma.c index 7a0e2d4d6077..2b8666f8a37d 100644 --- a/arch/unicore32/kernel/dma.c +++ b/arch/unicore32/kernel/dma.c @@ -169,7 +169,7 @@ int __init puv3_init_dma(void) ret = request_irq(IRQ_DMAERR, dma_err_handler, 0, "DMAERR", NULL); if (ret) { printk(KERN_CRIT "Can't register IRQ for DMAERR\n"); - free_irq(IRQ_DMA, "DMA"); + free_irq(IRQ_DMA, NULL); return ret; }