From: Grazvydas Ignotas Date: Sat, 19 Mar 2016 01:28:14 +0000 (+0200) Subject: leds-twl4030-pwm: fix another race X-Git-Tag: sz_175~46 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01f551de7fa4a384027f3f8d9119c45ca9d0fd1a;p=pandora-kernel.git leds-twl4030-pwm: fix another race This is a race between twl4030_pwmled_work() reading led->new_brightness vs twl4030_pwmled_brightness() writing to it. Probably needs a proper lock, but we want twl4030_pwmled_brightness() to not block and assume work items come from single queue and should not race each other. --- Reading git-diff-tree failed