diff options
author | Pierre-Louis Bossart <[email protected]> | 2021-11-19 17:08:49 -0600 |
---|---|---|
committer | Mark Brown <[email protected]> | 2021-11-24 12:57:17 +0000 |
commit | 0e888a74e52db369e19aec908131cf171079b306 (patch) | |
tree | cb975d7eefac7d03f4af12dcb44e9c7a6166d115 /tools/perf/scripts/python/mem-phys-addr.py | |
parent | 65c16dd2942f4476a3f96a2625b1475c6137c09a (diff) |
ALSA: pcm: unconditionally check if appl_ptr is in 0..boundary range
In some cases, the appl_ptr passed by userspace is not checked before
being used. This patch adds an unconditional check and returns an
error code should the appl_ptr exceed the ALSA 'boundary'.
Suggested-by: Takashi Iwai <[email protected]>
Reviewed-by: Takashi Iwai <[email protected]>
Reviewed-by: Ranjani Sridharan <[email protected]>
Reviewed-by: Kai Vehmanen <[email protected]>
Signed-off-by: Pierre-Louis Bossart <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions