diff options
author | Takashi Iwai | 2020-04-24 21:33:50 +0200 |
---|---|---|
committer | Takashi Iwai | 2020-04-24 21:34:52 +0200 |
commit | 4285de0725b1bf73608abbcd35ad7fd3ddc0b61e (patch) | |
tree | 3581be5ed3b84b93541d952185b5a12567527e6a /sound/last.c | |
parent | ae769d3556644888c964635179ef192995f40793 (diff) |
ALSA: pcm: oss: Place the plugin buffer overflow checks correctly
The checks of the plugin buffer overflow in the previous fix by commit
f2ecf903ef06 ("ALSA: pcm: oss: Avoid plugin buffer overflow")
are put in the wrong places mistakenly, which leads to the expected
(repeated) sound when the rate plugin is involved. Fix in the right
places.
Also, at those right places, the zero check is needed for the
termination node, so added there as well, and let's get it done,
finally.
Fixes: f2ecf903ef06 ("ALSA: pcm: oss: Avoid plugin buffer overflow")
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20200424193350.19678-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/last.c')
0 files changed, 0 insertions, 0 deletions