staging: most: cdev: fix race condition
authorChristian Gromm <christian.gromm@microchip.com>
Tue, 8 May 2018 09:45:10 +0000 (11:45 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 May 2018 11:41:51 +0000 (13:41 +0200)
commit993c1637a08f436eacc7b3f4eacbda8dac0b304b
tree51dbb92b98b9d103e4fda89c5351625dd20c8a92
parent021fa2dbc49b7759945735250b56eba40e5166ce
staging: most: cdev: fix race condition

This patch fixes a race condition between the functions disconnect and poll.

Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/cdev/cdev.c