Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp197658imj; Thu, 14 Feb 2019 18:29:23 -0800 (PST) X-Google-Smtp-Source: AHgI3IZHOMh+xY6yslqJFvA43R8WhzJiYMzhj/PEEiKbRFiepo+ushaLm8xuF4PulxXOUDE9JK9j X-Received: by 2002:a17:902:ab92:: with SMTP id f18mr7392050plr.221.1550197763072; Thu, 14 Feb 2019 18:29:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550197763; cv=none; d=google.com; s=arc-20160816; b=JhEMHc2dCMjASTsbacjnavCiwtH8XhuKk9j/WG8VKng/DthN0DzCYV8MQGCJw2ZvxI NWfRNFoPUl1kML836g0EdoExZ1zeA+515NGO7mQZcVb2dOBZoCe/5Ffdfj7x6bFoiqJ+ pCwJ2ZKgMOH8ZbLkG/aWWNQZKK3xlBzGoUjsQmyKyBRlSOGIE+TF7+SdNhVQY4yhjdhP Rx6v/VlowONSKfvC+xeyphzWZ+NRN1GAt7chJPiAOCw6Snt8EePkzDbexIN9h7SaXrx/ ugfcW+3xkHzzbgDDlN97bO/BgQN8S5gboCjB2ZimdYjYIerWrTVzHqhaCNULT2LCn25U Gkwg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3EJZLN+DxyOKfHbR9WVbZ8JbJCmUwTBIdOGYuH8O2pU=; b=R/Peu/BXfUFyWli7S9DRTtiRBuOpteVaCRMANwZmkVQVZDbDsvTafy07tuKA40cXDG UfRHiQ7mW/Fa4ppbxLrfgkqygMFlyDA9juoTM3H8VeZiw3x/UYZqmgTUAjm8fIWtefXm l7P8gDMlYcviUmbsUMgYv+SbP7+LutLwuJqyO8HHlfJx7fdNkjtonmRejjUYuW0N06Aj 0yIhNt72gUvUPJk3zV0BW9Kh/+GcBMKRTxxfI9nU5uz2R5XDe2yT9yUb9U6z0Da3mHMh qoM4v2FSvkbYVWGf+vUSu7r+H0CTb8z1v+WwhFcp5ejwSBiMJv+noJzs9QBy4Slz7PcN gs1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ctQJo0u6; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 33si4219773plh.245.2019.02.14.18.29.07; Thu, 14 Feb 2019 18:29:23 -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=ctQJo0u6; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389474AbfBOCJx (ORCPT + 99 others); Thu, 14 Feb 2019 21:09:53 -0500 Received: from mail.kernel.org ([198.145.29.99]:49964 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389129AbfBOCJs (ORCPT ); Thu, 14 Feb 2019 21:09:48 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1FF7F222D4; Fri, 15 Feb 2019 02:09:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550196587; bh=8UN0B3TRD+hX+0lpLPRtGT187EZVzcIQSZfk1WFAYjg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ctQJo0u67GiuEWZN2IaAF2qf5J7L0u6f3TAAndhfBF465KrazxCfVbFlJ+9hnFQ6V SaNb3eBq9Xn8GozujYBZLJUTW5QTRc3sCxeWYNJiMTLFoR5UHWb1f0QxMawJ79Omtk +OwrujlWIsm84xdAHQfLP0zyCo4E0H5ohjTsqlFE= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Yang Yingliang , Marc Zyngier , Sasha Levin Subject: [PATCH AUTOSEL 4.20 31/77] irqchip/gic-v3-mbi: Fix uninitialized mbi_lock Date: Thu, 14 Feb 2019 21:08:09 -0500 Message-Id: <20190215020855.176727-31-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190215020855.176727-1-sashal@kernel.org> References: <20190215020855.176727-1-sashal@kernel.org> MIME-Version: 1.0 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yang Yingliang [ Upstream commit c530bb8a726a37811e9fb5d68cd6b5408173b545 ] The mbi_lock mutex is left uninitialized, so let's use DEFINE_MUTEX to initialize it statically. Fixes: 505287525c24d ("irqchip/gic-v3: Add support for Message Based Interrupts as an MSI controller") Signed-off-by: Yang Yingliang Signed-off-by: Marc Zyngier Signed-off-by: Sasha Levin --- drivers/irqchip/irq-gic-v3-mbi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-gic-v3-mbi.c b/drivers/irqchip/irq-gic-v3-mbi.c index ad70e7c416e3..fbfa7ff6deb1 100644 --- a/drivers/irqchip/irq-gic-v3-mbi.c +++ b/drivers/irqchip/irq-gic-v3-mbi.c @@ -24,7 +24,7 @@ struct mbi_range { unsigned long *bm; }; -static struct mutex mbi_lock; +static DEFINE_MUTEX(mbi_lock); static phys_addr_t mbi_phys_base; static struct mbi_range *mbi_ranges; static unsigned int mbi_range_nr; -- 2.19.1