OSDN Git Service

ALSA: snd-usb-caiaq: Correct offset fields of outbound iso_frame_desc
authorDaniel Mack <zonque@gmail.com>
Fri, 5 Aug 2011 11:49:52 +0000 (13:49 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 17 Aug 2011 17:55:53 +0000 (10:55 -0700)
commit8adf76d75e7ed6d30c4aa598bf8ac51de50f3adb
treeaa9f0b70e352ed9c119bffbce6c3501fe421f2f7
parent8282be4dd5ff3fef30271c61ee74db66524d8350
ALSA: snd-usb-caiaq: Correct offset fields of outbound iso_frame_desc

commit 15439bde3af7ff88459ea2b5520b77312e958df2 upstream.

This fixes faulty outbount packets in case the inbound packets
received from the hardware are fragmented and contain bogus input
iso frames. The bug has been there for ages, but for some strange
reasons, it was only triggered by newer machines in 64bit mode.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Reported-and-tested-by: William Light <wrl@illest.net>
Reported-by: Pedro Ribeiro <pedrib@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
sound/usb/caiaq/audio.c