]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip/irq-mvebu-gicp: Allocate enough memory for spi_bitmap
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 30 Jun 2017 08:00:49 +0000 (11:00 +0300)
committerMarc Zyngier <marc.zyngier@arm.com>
Fri, 30 Jun 2017 14:32:46 +0000 (15:32 +0100)
commit34b83d30ad10e5d433a6d91a1960328d156022cc
tree30cd3bf6ccc129ecf27d50379a2ff476a27a3259
parent44b7e37e0b09adeea39d3f7bc9f737a7441d2b57
irqchip/irq-mvebu-gicp: Allocate enough memory for spi_bitmap

BITS_TO_LONGS() gives us the number of longs we need, but we want to
allocate the number of bytes.

Fixes: 502af05709e9 ("irqchip/irq-mvebu-gicp: Add new driver for Marvell GICP")
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/irqchip/irq-mvebu-gicp.c