]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Fix packet size calculation regression
authorTakashi Iwai <tiwai@suse.de>
Fri, 1 Oct 2021 10:54:25 +0000 (12:54 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 1 Oct 2021 10:54:56 +0000 (12:54 +0200)
commit1e7e0103b5fcea404cc53816942a5356cc40625c
tree8f5d80841a20480b511d9b9df2f9c179f66a6fc6
parente53d6686466f504b973536dcdd5a94075f447e6f
ALSA: usb-audio: Fix packet size calculation regression

The commit e3913063b5b6 ("ALSA: usb-audio: Check available frames for
the next packet size") introduced the available frame size check, but
the conversion forgot to initialize the temporary variable properly,
and it resulted in a bogus calculation.  This patch fixes it.

Fixes: e3913063b5b6 ("ALSA: usb-audio: Check available frames for the next packet size")
Reported-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20211001104417.14291-1-colin.king@canonical.com
Link: https://lore.kernel.org/r/20211001105425.16191-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/endpoint.c