summaryrefslogtreecommitdiff
path: root/drivers/irqchip
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2021-12-26 15:46:21 +0100
committerMarc Zyngier <maz@kernel.org>2022-01-17 13:16:26 +0000
commitc831d92890e037aafee662e66172d406804e4818 (patch)
tree8562d05ad037f2c1da91e920d5401223fc5b0bb2 /drivers/irqchip
parent960dd884ddf5621ae6284cd3a42724500a97ae4c (diff)
downloadlinux-rpi-c831d92890e037aafee662e66172d406804e4818.tar.gz
linux-rpi-c831d92890e037aafee662e66172d406804e4818.tar.bz2
linux-rpi-c831d92890e037aafee662e66172d406804e4818.zip
irqchip/loongson-pch-ms: Use bitmap_free() to free bitmap
kfree() and bitmap_free() are the same. But using the latter is more consistent when freeing memory allocated with bitmap_zalloc(). Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/0b982ab54844803049c217b2899baa59602faacd.1640529916.git.christophe.jaillet@wanadoo.fr
Diffstat (limited to 'drivers/irqchip')
-rw-r--r--drivers/irqchip/irq-loongson-pch-msi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/irqchip/irq-loongson-pch-msi.c b/drivers/irqchip/irq-loongson-pch-msi.c
index 32562b7e681b..e3801c4a77ed 100644
--- a/drivers/irqchip/irq-loongson-pch-msi.c
+++ b/drivers/irqchip/irq-loongson-pch-msi.c
@@ -241,7 +241,7 @@ static int pch_msi_init(struct device_node *node,
return 0;
err_map:
- kfree(priv->msi_map);
+ bitmap_free(priv->msi_map);
err_priv:
kfree(priv);
return ret;