]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging: most: dim2-hdm: fix race condition when closing a channel
authorChristian Gromm <christian.gromm@microchip.com>
Mon, 13 Jun 2016 14:24:23 +0000 (16:24 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Aug 2016 18:18:55 +0000 (20:18 +0200)
commit6ebb3727ead795a4dc80f99d2e8065dbc041ccce
tree2b4e79efd363ccba69ec209909c273704c82ba7f
parent908614be1604388236c2a1cc6048ec29893df5df
staging: most: dim2-hdm: fix race condition when closing a channel

This patch fixes race between the function poison_channel that clears
the state is_initialized and the tasklet function dim2_tasklet_fn that
checks the state is_initialized.

Signed-off-by: Andrey Shvetsov <andrey.shvetsov@k2l.de>
Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/hdm-dim2/dim2_hdm.c