Skip to content

Commit c831d92

Browse files
tititiou36Marc Zyngier
authored andcommitted
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 <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/0b982ab54844803049c217b2899baa59602faacd.1640529916.git.christophe.jaillet@wanadoo.fr
1 parent 960dd88 commit c831d92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/irqchip/irq-loongson-pch-msi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ static int pch_msi_init(struct device_node *node,
241241
return 0;
242242

243243
err_map:
244-
kfree(priv->msi_map);
244+
bitmap_free(priv->msi_map);
245245
err_priv:
246246
kfree(priv);
247247
return ret;

0 commit comments

Comments
 (0)