diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2018-10-26 15:51:17 +0800 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2019-01-17 17:03:44 +0000 |
commit | c530bb8a726a37811e9fb5d68cd6b5408173b545 (patch) | |
tree | f67c178459f25344a0ff028c1cd9ba883e701114 /drivers/irqchip/irq-gic-v3-mbi.c | |
parent | 1d47f48bf2d1608c2d6eb76b3ec7a5ec0c3f9e95 (diff) | |
download | linux-c530bb8a726a37811e9fb5d68cd6b5408173b545.tar.gz linux-c530bb8a726a37811e9fb5d68cd6b5408173b545.tar.bz2 linux-c530bb8a726a37811e9fb5d68cd6b5408173b545.zip |
irqchip/gic-v3-mbi: Fix uninitialized mbi_lock
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>
Diffstat (limited to 'drivers/irqchip/irq-gic-v3-mbi.c')
-rw-r--r-- | drivers/irqchip/irq-gic-v3-mbi.c | 2 |
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; |