ALSA: pcm: signedness bug in snd_pcm_plug_alloc()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 27 Aug 2018 09:21:45 +0000 (12:21 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Nov 2019 08:52:00 +0000 (09:52 +0100)
commit2ec852b9c121309c3d869c7204cc9cce3c2389d5
tree46cae2fcf3ad2faf66bf92aba17df0cc3446248d
parentb7f8108a1cd47a12fd1f9d432d69ad4f049d0582
ALSA: pcm: signedness bug in snd_pcm_plug_alloc()

[ Upstream commit 6f128fa41f310e1f39ebcea9621d2905549ecf52 ]

The "frames" variable is unsigned so the error handling doesn't work
properly.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/core/oss/pcm_plugin.c