[PATCH] xf86: take next pointer before calling handler

Aaron Plattner aplattner at nvidia.com
Mon Oct 8 13:13:32 PDT 2012


On 10/08/2012 10:54 AM, Keith Packard wrote:
> * PGP Signed by an unknown key
>
> Maarten Lankhorst <maarten.lankhorst at canonical.com> writes:
>
>> Taking a pointer to ih->next before calling the event handler fixes
>> this.
>
> Yay, more open coded lists. Any way we could encourage you to replace it
> with a struct xorg_list instead?

Or at least

   nt_list_for_each_entry_safe(ih, ih_tmp, InputHandlers, next) {
       ...
   }

if you need a short-term fix.

-- Aaron


More information about the xorg-devel mailing list