Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2522012yba; Mon, 15 Apr 2019 13:30:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqxvmgF9ICmsxbmXudvs+ao9m4FI0W8LPS9AOsskevCkp9M+MicMA55gsOq19oQ+MKR4iaW/ X-Received: by 2002:a63:dc50:: with SMTP id f16mr71899099pgj.396.1555360208637; Mon, 15 Apr 2019 13:30:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555360208; cv=none; d=google.com; s=arc-20160816; b=gKesFzBawaiYvqWdh0yVvlinzVN6HmfLcSDRa0ydASVg4pd+B2Sf5OYh9MAF3jAixE QRhMBhKOGbgTWv5xcYBW3DfmcTpFmSFBo+lP30u81TH8RzrmAJ1iVSGNWa7408MjKXhh 87t12m6m9c3K0O+kJn5+UCgInkfC0EHKDkCEpv/RNPr14DtRpPSOOV4TMUwUD9EnhcVP X+anAk2p7pEiomThHbZn/cBxJ+ABPUraHrka0lCQojYr/6kdGz0bSBTuAQIRVEOBAJZV GB2pnrlIkBLKUi3aKFfsI02tgKoY+hae4WAf3WcHp1kqFraBhH6e49nx4keg4DJE4HHg wzZw== 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=OEhImgZRUCab99fJtOlwT9r9oNswDHtxJLOlECsCKCA=; b=OqKdX/viBTjAYZarbVQKgqz+ijCGY1nLYlTlPVD9pl8TiYEAAv2slFe5rk06tj0pjR YvjKzTTJ+GaorKnjPSZoxcIiXCb1x6aWjzn/FuZgoC2G5Y7aAGtVjEJ+8cNZ96467tiA 9NO01qW9Ge9jeZkbWooC33cWTHdzL8F6U5KVjCE6plfHM+SVnlSt+sVBJTRVRJtrHLDD W4K8tGPiULdrF9TzILeCgVNMX4kWbN/Ag8TLDwXQV5cM+oyh/feCFWvaJnCgl75mLEzr F0ficMwkaXzr20lRK9OtTfpF3WvJur451n5TaKUl/ScPIUkVlt7AXqIa0qsR+fNN2uVO ldgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BixsDwwG; 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 p10si45657261plq.152.2019.04.15.13.29.51; Mon, 15 Apr 2019 13:30:08 -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=BixsDwwG; 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 S1729310AbfDOTDm (ORCPT + 99 others); Mon, 15 Apr 2019 15:03:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:35700 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729297AbfDOTDk (ORCPT ); Mon, 15 Apr 2019 15:03:40 -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 EF5F7218A1; Mon, 15 Apr 2019 19:03:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555355019; bh=AUiHHgA59mZ5aKCfD2nJ8sde5DoDoy680OvnJwhRI44=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BixsDwwGdPhw7jXE4FpRtqTAvq29t6eoq+bNLdziw7cCeilIxzL8Z6F7LadGyJwiP ujIwyEEgZ388GamUAjO174wfTp9mAgxgheJWBxvcO1LdARzTSEZQJH6FhGVrtoiWpK DV7wgk2l1wGHitI+DxHDRhVKPt+R0DjO2BFydbwM= 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.14 52/69] genirq: Initialize request_mutex if CONFIG_SPARSE_IRQ=n Date: Mon, 15 Apr 2019 20:59:10 +0200 Message-Id: <20190415183734.481627647@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190415183726.036654568@linuxfoundation.org> References: <20190415183726.036654568@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 @@ -535,6 +535,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();