|
@@ -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);
|