]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/irqchip/irq-gic-v3-its.c
Merge tag 'for-v3.20' of git://git.infradead.org/battery-2.6
[mirror_ubuntu-artful-kernel.git] / drivers / irqchip / irq-gic-v3-its.c
index 86e4684adeb12d8f8f493dfaa686310c3c0bc4de..d8996bdf0f61e95e45ee670e44e565d045fb9535 100644 (file)
@@ -1053,7 +1053,7 @@ static struct its_device *its_create_device(struct its_node *its, u32 dev_id,
         * of two entries. No, the architecture doesn't let you
         * express an ITT with a single entry.
         */
-       nr_ites = max(2, roundup_pow_of_two(nvecs));
+       nr_ites = max(2UL, roundup_pow_of_two(nvecs));
        sz = nr_ites * its->ite_size;
        sz = max(sz, ITS_ITT_ALIGN) + ITS_ITT_ALIGN - 1;
        itt = kmalloc(sz, GFP_KERNEL);