]> git.ipfire.org Git - people/ms/linux.git/commit
ALSA: fireworks: fix an endianness bug for transaction length
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Wed, 7 Jan 2015 15:31:16 +0000 (00:31 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Jan 2015 14:59:51 +0000 (06:59 -0800)
commit9e31ed5fc640096f73626ec13d6793efae2a5ec5
tree10a38c2711d590783267a9eaac1d051242dbea20
parent61654b8c510bc85b0d9506592063b80c146b82bd
ALSA: fireworks: fix an endianness bug for transaction length

commit 92cb46584e104e2f4b14a44959109ffe13524a26 upstream.

Although the 't->length' is a big-endian value, it's used without any
conversion. This means that the driver always uses 'length' parameter.

Fixes: 555e8a8f7f14("ALSA: fireworks: Add command/response functionality into hwdep interface")
Reported-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Sakamoto <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_transaction.c