Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp233306yba; Fri, 5 Apr 2019 05:45:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqxo6ObVBjBsUPkq+EcZShYB6Sh6w/ehUCNTAc1CU9TcLc///w/5bg7dLXepnofBWjaq6eso X-Received: by 2002:a63:744b:: with SMTP id e11mr11714656pgn.327.1554468344399; Fri, 05 Apr 2019 05:45:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554468344; cv=none; d=google.com; s=arc-20160816; b=gp6wzaWSVNKYNIf31dUgQ1oy99LEJTDZiZWZAwY3Q0/he9YjHCGMvC6VMbJJ5gq4ST EWlXuyeTicgN5IKU9Ng3aVXG/c3SGuImDtQ+K8ubzJU6WznnRDZR3PReKhjHhWTBfYto ZgCGvnMcccNPDxjZBTCtJ2R81NIt90BXvR+Sf8uIC9xbuioge652iZJULcbi26oLwq4U 0OuFPJGf39DpMOvuyZ+/cS+LD9VfTYXbHsM/7dTCkQ0pmyfTg7pfNCyJKYgseYfUg0bz J3ZhNGNl6BrwvyYTGX8SWck2cp9p3Q7fc6bQhlFe0V5wrH05Qi00Y1xtMjgFJvGl0vJy 6vWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date; bh=UCMrG3Hg/k/2M9615VLi3gYE9uRY1RNP+ZDvIHdM6Zw=; b=LZDqqNiH3NMsr8gu91e9ZoT/azoSH1Mux8qhI8ElJU5q5NzRMbx13nuXZ4HNAZh71K rLRqxFtwe+7YUvtSGAOTgH17ry9HGlQwVjNMAZmabnoGFA66mf7ZbyTi3+C9CwUL/WBT w4DCdwhD95drTe/o6WJRhSu5dR+jFqJsp36ERSFepGM+ZaKjgDVyUfzIRM27LI2dB5fk n1zyyoaBi0vODH254x/YlborfEg/ShxnmYc2DOmB5uyD6LRDCUodTYntmRAcXOGWl2yH EtMFRuPMRyrzPMLxCMNQn/XAoSeOr3S3REa69l/Dn2kSmB1UtL1idkSGFaElDB52OKEl vk3w== 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 v2si10839049pgr.41.2019.04.05.05.45.28; Fri, 05 Apr 2019 05:45:44 -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 S1730777AbfDEMoM (ORCPT + 99 others); Fri, 5 Apr 2019 08:44:12 -0400 Received: from terminus.zytor.com ([198.137.202.136]:35001 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726643AbfDEMoM (ORCPT ); Fri, 5 Apr 2019 08:44:12 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x35Chtt02753966 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 5 Apr 2019 05:43:55 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x35Chs6x2753963; Fri, 5 Apr 2019 05:43:54 -0700 Date: Fri, 5 Apr 2019 05:43:54 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Kefeng Wang Message-ID: Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, wangkefeng.wang@huawei.com, tglx@linutronix.de, mingo@kernel.org, marc.zyngier@arm.com, mojha@codeaurora.org, hpa@zytor.com Reply-To: marc.zyngier@arm.com, tglx@linutronix.de, mingo@kernel.org, hpa@zytor.com, mojha@codeaurora.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, wangkefeng.wang@huawei.com In-Reply-To: <20190404074512.145533-1-wangkefeng.wang@huawei.com> References: <20190404074512.145533-1-wangkefeng.wang@huawei.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:irq/urgent] genirq: Initialize request_mutex if CONFIG_SPARSE_IRQ=n Git-Commit-ID: e8458e7afa855317b14915d7b86ab3caceea7eb6 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: e8458e7afa855317b14915d7b86ab3caceea7eb6 Gitweb: https://git.kernel.org/tip/e8458e7afa855317b14915d7b86ab3caceea7eb6 Author: Kefeng Wang AuthorDate: Thu, 4 Apr 2019 15:45:12 +0800 Committer: Thomas Gleixner CommitDate: Fri, 5 Apr 2019 14:37:56 +0200 genirq: Initialize request_mutex if CONFIG_SPARSE_IRQ=n When CONFIG_SPARSE_IRQ is disable, the request_mutex in struct irq_desc is not initialized which causes malfunction. Fixes: 9114014cf4e6 ("genirq: Add mutex to irq desc to serialize request/free_irq()") Signed-off-by: Kefeng Wang Signed-off-by: Thomas Gleixner Reviewed-by: Mukesh Ojha Cc: Marc Zyngier Cc: Cc: stable@vger.kernel.org Link: https://lkml.kernel.org/r/20190404074512.145533-1-wangkefeng.wang@huawei.com --- kernel/irq/irqdesc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/irq/irqdesc.c b/kernel/irq/irqdesc.c index 13539e12cd80..9f8a709337cf 100644 --- a/kernel/irq/irqdesc.c +++ b/kernel/irq/irqdesc.c @@ -558,6 +558,7 @@ int __init early_irq_init(void) alloc_masks(&desc[i], node); raw_spin_lock_init(&desc[i].lock); lockdep_set_class(&desc[i].lock, &irq_desc_lock_class); + mutex_init(&desc[i].request_mutex); desc_set_defaults(i, &desc[i], node, NULL, NULL); } return arch_early_irq_init();