>>> On 01.08.18 at 16:33, <andrew.coop...@citrix.com> wrote: > On 01/08/18 15:31, Jan Beulich wrote: >> The address of an array slot can't be NULL. Instead add a bounds check >> to make sure the array indexing is valid (the check is against 2 since >> slot zero of the array - corresponding to C0 - is of no interest here). >> >> Signed-off-by: Jan Beulich <jbeul...@suse.com> > > Wouldn't an expression involving ARRAY_SIZE() be more appropriate?
No, as this is a lower bounds check; ->count will never exceed the upper bound. > Either way, Acked-by: Andrew Cooper <andrew.coop...@citrix.com> Thanks, Jan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel