|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v10 24/32] ARM: GICv3: handle unmapped LPIs
Hi Andre, On 26/05/17 18:35, Andre Przywara wrote: This loop is incorrect. find_next_bit will find the next set bit start at the offset used_lr. So if used_lr is set and does match the virq, this will turned into an infinite loop. I would use the macro for_each_set_bit (see xen/bitops.h) here that will handle the problem for you:
for_each_set_bit( used_lr, lr_mask, nr_lrs )
{
....
}
Cheers,
--
Julien Grall
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |