Re: [PATCH] uevent: send events in correct order according to seqnum (v2)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Mar 7, 2012 at 10:59, Andrew Vagin <avagin@xxxxxxxxxx> wrote:
> The queue handling in the udev daemon assumes that the events are
> ordered.

> -       retval = add_uevent_var(env, "SEQNUM=%llu", (unsigned long long)seq);
> +       retval = add_uevent_var(env, "SEQNUM=%llu", (unsigned long long)++uevent_seqnum);
>        if (retval)
>                goto exit;

We need to unlock the mutex before the goto exit?

Other than that, looks good to me.

Thanks,
Kay
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux