diff options
| author | Brian Masney <masneyb@onstation.org> | 2016-09-26 20:20:18 -0400 |
|---|---|---|
| committer | Jonathan Cameron <jic23@kernel.org> | 2016-10-01 14:53:51 +0100 |
| commit | 5faf98cb319bc7ce7cef080be1bbebba44233332 (patch) | |
| tree | 1666f6a73c938dc8850211d5bc8c3791db714aab /kernel/sysctl_binary.c | |
| parent | staging: iio: isl29018: use IIO_DEVICE_ATTR_{RO, RW} macros (diff) | |
| download | linux-5faf98cb319bc7ce7cef080be1bbebba44233332.tar.gz linux-5faf98cb319bc7ce7cef080be1bbebba44233332.zip | |
staging: iio: isl29018: fixed race condition in in_illuminance_scale_available_show()
in_illuminance_scale_available_show() references the
isl29018_chip->int_time variable in three places inside a for loop.
The value of the int_time variable can be updated by the
isl29018_set_integration_time() function, which is called by the
isl29018_write_raw() function. isl29018_write_raw() locks a
mutex specific to this driver when the integration time variable is
updated.
Signed-off-by: Brian Masney <masneyb@onstation.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'kernel/sysctl_binary.c')
0 files changed, 0 insertions, 0 deletions
