summaryrefslogtreecommitdiffstats
path: root/drivers/irqchip
diff options
context:
space:
mode:
authorYang Yingliang <yangyingliang@huawei.com>2018-10-26 15:51:17 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-03-05 17:58:48 +0100
commit0655618dd92dd29e81532e1bbee9121340d7b0c3 (patch)
tree6b11e41b3135d6a4d6aca6f602692b9fe3c5ad5e /drivers/irqchip
parentf352e84e6e3c9444b577a71a5b6dec60085ea97c (diff)
downloadlinux-stable-0655618dd92dd29e81532e1bbee9121340d7b0c3.tar.gz
linux-stable-0655618dd92dd29e81532e1bbee9121340d7b0c3.tar.bz2
linux-stable-0655618dd92dd29e81532e1bbee9121340d7b0c3.zip
irqchip/gic-v3-mbi: Fix uninitialized mbi_lock
[ 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 <yangyingliang@huawei.com> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/irqchip')
-rw-r--r--drivers/irqchip/irq-gic-v3-mbi.c2
1 files changed, 1 insertions, 1 deletions
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;