aboutsummaryrefslogtreecommitdiffstats
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorHans de Goede <[email protected]>2016-11-08 13:38:46 +0000
committerJacek Anaszewski <[email protected]>2016-11-22 11:07:05 +0000
commita9c6ce57ec2f136d08141e8220a0ffaca216f7b0 (patch)
treef7a577053e7c3453ae8939d87b903dde4754b2e7 /net/lapb/lapb_iface.c
parentleds: Add user LED driver for NIC78bx device (diff)
downloadkernel-a9c6ce57ec2f136d08141e8220a0ffaca216f7b0.tar.gz
kernel-a9c6ce57ec2f136d08141e8220a0ffaca216f7b0.zip
led: core: Use atomic bit-field for the blink-flags
All the LED_BLINK* flags are accessed read-modify-write from e.g. led_set_brightness and led_blink_set_oneshot while both set_brightness_work and the blink_timer may be running. If these race then the modify step done by one of them may be lost, switch the LED_BLINK* flags to a new atomic work_flags bit-field to avoid this race. Signed-off-by: Hans de Goede <[email protected]> Signed-off-by: Jacek Anaszewski <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions