diff options
| author | paulhsia <paulhsia@chromium.org> | 2019-11-13 01:17:14 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-12-21 10:34:23 +0100 |
| commit | 5e78b5ebdd265e8fc3deeb6bf7dba7347fad63f0 (patch) | |
| tree | 8337b1a4aac749def58765cda985202f9083b751 /scripts/checkpatch.pl | |
| parent | eedf2832ff357a4f0fb686b4d4c9fb5e716514f7 (diff) | |
ALSA: pcm: Fix stream lock usage in snd_pcm_period_elapsed()
[ Upstream commit f5cdc9d4003a2f66ea57b3edd3e04acc2b1a4439 ]
If the nullity check for `substream->runtime` is outside of the lock
region, it is possible to have a null runtime in the critical section
if snd_pcm_detach_substream is called right before the lock.
Signed-off-by: paulhsia <paulhsia@chromium.org>
Link: https://lore.kernel.org/r/20191112171715.128727-2-paulhsia@chromium.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts/checkpatch.pl')
0 files changed, 0 insertions, 0 deletions
