On Fri, Apr 29, 2016 at 11:07:37PM +0200, Sven Eckelmann wrote:
> On Thursday 28 April 2016 22:37:28 Andrew Lunn wrote:
> > + hlist_for_each_entry_rcu(claim, head, hash_entry) {
> > + if (idx++ < *idx_skip)
> > + continue;
> > + if (batadv_bla_claim_dump_entry(msg, portid, seq,
> > + primary_if, claim))
> > + *idx_skip = idx - 1;
> > + goto unlock;
> > + }
>
> This is buggy and will always jump to unlock after the first entry. Please
> enclose the "*idx_skip = idx - 1;" and "goto unlock;" with { ... }
Hi Sven
Yep. As i said, untested and likely broken.
I will fix this, and it would be good if somebody could test the v2,
and maybe even fix it. Or i can drop this patch.
Andrew