]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: fireworks: fix wrong return count shorter than expected by 4 bytes
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sun, 24 Apr 2022 10:24:28 +0000 (19:24 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 May 2022 10:30:01 +0000 (12:30 +0200)
commit92f41a070c40586b5f3fbd432e709123c7397f3c
treef54b1ebb5a6c8f0076da2300129c715ae1c27350
parentbe7e0ce9b5603e344c0b274d9a5ee456240f2640
ALSA: fireworks: fix wrong return count shorter than expected by 4 bytes

commit 9cfc7855d186c7e0ebfff051fab9bd2c06fc9109 upstream.

ALSA fireworks driver has a bug in its initial state to return count
shorter than expected by 4 bytes to userspace applications when handling
response frame for Echo Audio Fireworks transaction. It's due to missing
addition of the size for the type of event in ALSA firewire stack.

Fixes: 01a512a6e46f ("ALSA: fireworks: Add command/response functionality into hwdep interface")
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20220424102428.21109-1-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/firewire/fireworks/fireworks_hwdep.c