summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorGinger Li <ginger.jzllee@gmail.com>2026-09-23 09:56:31 +0800
committerSakari Ailus <sakari.ailus@linux.intel.com>2026-09-26 16:48:12 +0300
commit76c8ffbe1b9bc0ee4c977180e3f498352de0d01e (patch)
tree4fa0f27d3add9877ab026fbed33051f890a1a3ef /tools/perf/scripts/python/task-analyzer.py
parent3b266ee2a63b5b71c44c7550261e172a3ff5703e (diff)
media: i2c: ov5648: Fix a data race on state->streaming
ov5648_s_stream() updates state->streaming after it has released sensor->mutex, while ov5648_resume() reads that field with sensor->mutex held. A concurrent resume can therefore observe a stale streaming state and leave the sensor in standby while the software believes that it is streaming, or the other way around. Keep the update inside the sensor->mutex protected section that already programs the standby mode. Fixes: e43ccb0a045f ("media: i2c: Add support for the OV5648 image sensor") Signed-off-by: Ginger Li <ginger.jzllee@gmail.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions