irqchip/loongson-pch-msi: Use bitmap_zalloc() to allocate bitmap
authorHuacai Chen <chenhuacai@loongson.cn>
Tue, 9 Feb 2021 07:10:51 +0000 (15:10 +0800)
committerMarc Zyngier <maz@kernel.org>
Tue, 9 Feb 2021 10:41:40 +0000 (10:41 +0000)
commitc1f664d2400e73d5ca0fcd067fa5847d2c789c11
tree7e34d6ca38949a5db8f6c959365b2d90ba2f2d4f
parentbe1abc5ba4d2082df6749ab95ec6f87c4d3dbb23
irqchip/loongson-pch-msi: Use bitmap_zalloc() to allocate bitmap

Currently we use bitmap_alloc() to allocate msi bitmap which should be
initialized with zero. This is obviously wrong but it works because msi
can fallback to legacy interrupt mode. So use bitmap_zalloc() instead.

Fixes: 632dcc2c75ef6de3272aa ("irqchip: Add Loongson PCH MSI controller")
Cc: stable@vger.kernel.org
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210209071051.2078435-1-chenhuacai@loongson.cn
drivers/irqchip/irq-loongson-pch-msi.c