Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2463481yba; Mon, 15 Apr 2019 12:10:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqyUoXbgwlzbw9+y//AAS4YhXpAeQpImAIzW/RfhOHyk539Xyv2wggBOfqXyEj82y/ZboJQP X-Received: by 2002:a17:902:9a0c:: with SMTP id v12mr50481015plp.184.1555355440096; Mon, 15 Apr 2019 12:10:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555355440; cv=none; d=google.com; s=arc-20160816; b=gRlxWxz2U/v8skoDH2QvfPFLfPXb3ZsTob7vkSHQjebsyuR5AzfH9CECoO9DrNh4Iv cC5fYUCRI6AukLV6e87G/cg00plbfhMchi/PoM2mwcvqY7oy1bWgV2pGWD+a0v36Bs0q QiIwQqzVT6Kr3XPIxPbPLZ83P+Ab0Qey79MiNvspr57bUIPwiBrqVtxR0pMAVeG0R7Hq Afm4Ua8Ta/Ke5BGfR1X7SMjhYtdiCC5jQ0N5DzElxFHLzl03kRbrJAOg1dFiSYF5nfzp M70paG1yEGaneNgRkBPRVrq/u1ZCDOxJHPehD7xtN2Hz20d6dAwczsQmo66f3Jee/aXH iPTA== 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=dSYnWQrLPhUxc5EPy0LOys6/x0SOGhh+0eb6LVZ9ZZA=; b=YX+21pegIxdXUIMaHkZMMnGm5gxPLgTnv/AoENp/apbJP08xcRmPBSFhfEpdVgYfqw n0NXU9866+EDTNZRCgnz/w+tPBrb5tRCZTSWj4RnLNi/NI3ihQadbcUvxDePCtUXFY1q nS7ZhLqD1s4ujYEYScToYk+4Q2aao/G3/yz2J0k3zAgxTrcIN5WcmmG19PiYKsdwPyhT ayr+GLC9GdJoqagq7iF3IWU927qH2Bku8eKlkdt3rO23trCjBBtR5e3g8CcGNWYfmr1z R4x5mdDYkcDemNI5j0WW1Kuh6Bm+LIclrtUHVBRdckmhjGGKFNKQGlEdmGzqU/DePUrm mRGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=051yNZl6; 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 n69si13851151pfb.256.2019.04.15.12.10.24; Mon, 15 Apr 2019 12:10:40 -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; dkim=pass header.i=@kernel.org header.s=default header.b=051yNZl6; 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 S1730333AbfDOTH5 (ORCPT + 99 others); Mon, 15 Apr 2019 15:07:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:42988 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730322AbfDOTHv (ORCPT ); Mon, 15 Apr 2019 15:07:51 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.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 ACBAB218FE; Mon, 15 Apr 2019 19:07:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555355271; bh=NVvtnQW6+4IY5A1Rbha4/7epwBJhAGchxQSymarG8d8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=051yNZl65NIrBlHCYCqoO1KddgvaIe/q9BXnnLOY7AmU1Quo/sZI/FfNZcwiSuIJM fX8LDnH+V09GlHzT8/2tvOAgFZOFfzAJPZEhmQYm6kI96VtwviuADXvY48mOjkzidR 54qP0UeALISF6PAMQGmVGCxuxPTQPwC23y43biac= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kefeng Wang , Thomas Gleixner , Mukesh Ojha , Marc Zyngier , linux-arm-kernel@lists.infradead.org Subject: [PATCH 4.19 074/101] genirq: Initialize request_mutex if CONFIG_SPARSE_IRQ=n Date: Mon, 15 Apr 2019 20:59:12 +0200 Message-Id: <20190415183744.374157389@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190415183740.341577907@linuxfoundation.org> References: <20190415183740.341577907@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Kefeng Wang commit e8458e7afa855317b14915d7b86ab3caceea7eb6 upstream. 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 Signed-off-by: Greg Kroah-Hartman --- kernel/irq/irqdesc.c | 1 + 1 file changed, 1 insertion(+) --- a/kernel/irq/irqdesc.c +++ b/kernel/irq/irqdesc.c @@ -554,6 +554,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();