On Tue, Sep 27, 2011 at 11:30 AM, Stijn Devriendt <high...@gmail.com> wrote: >> + spin_unlock(&desc->lock); > > Now this is racing with... > (...) > ... this: > >> + spin_lock(&desc->lock); >> + desc->mux_requested = true; >> + strncpy(desc->mux_function, function, sizeof(desc->mux_function)); >> + spin_unlock(&desc->lock);
Good catch! I've fixed it by setting ->mux_requested immediatelty and then later release it (inside a lock) if something fails. Yours, Linus Walleij _______________________________________________ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev