irqchip/gic-v3-its: Fix command buffer allocation
authorRobert Richter <rrichter@cavium.com>
Wed, 1 Feb 2017 17:38:25 +0000 (18:38 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Wed, 8 Feb 2017 15:47:44 +0000 (15:47 +0000)
commit5bc13c2cbeec776a2b724cb51bf11fbc30c23318
tree55498e6d7537123b40960ad94af921b78b91650d
parent4cfffcfa5106492f5785924ce2e9af49f075999b
irqchip/gic-v3-its: Fix command buffer allocation

The its command buffer must be page aligned, but kzalloc() is not
guaranteed to be (though it is mostly when allocating 64k). Use
__get_free_pages() as this is used for other buffers as well.

Signed-off-by: Robert Richter <rrichter@cavium.com>
[Marc: fixed the error path]
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/irqchip/irq-gic-v3-its.c