]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitef1aad08f8ec5e2dc277b113638148d7e79d72f9
treecd219caef34ac53fc6ee1bd097951b166043f1d0
parent3572d703b895e5148809b60af7947096cde10d63
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