USB: audio gadget: fix wTotalLength calculation
authorCliff Cai <cliff.cai@analog.com>
Thu, 10 Dec 2009 03:21:12 +0000 (22:21 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 Dec 2009 19:34:19 +0000 (11:34 -0800)
commitd16f172622a7941c4fca09724ce16df5348af5fb
treecd219caef34ac53fc6ee1bd097951b166043f1d0
parent465f8294eea1ea206e3a008e7bfe0e8fd53991fc
USB: audio gadget: fix wTotalLength calculation

The wTotalLength should contain the sum of the interface and unit
descriptor sizes per the Audio Device Class specification 1.0.

Reported-by: Sergey Lapin <slapin@ossfans.org>
Signed-off-by: Cliff Cai <cliff.cai@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/f_audio.c