]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: gadget: tcm_usb_gadget: NULL terminate the FS descriptor list
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Mon, 22 Oct 2012 20:14:56 +0000 (22:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Jan 2013 17:18:35 +0000 (09:18 -0800)
commit7347f50b3f034bd4da7778e55ce91076bf3f39c6
tree0e3e2c23da253cd0384d1f9e61dea74683ed1756
parentf3aab9240ef932c777727b3165ef583eaa9ab5a7
usb: gadget: tcm_usb_gadget: NULL terminate the FS descriptor list

commit fad8deb274edcef1c8ca38946338f5f4f8126fe2 upstream.

The descriptor list for FS speed was not NULL terminated. This patch
fixes this.

While here one of the twe two bAlternateSetting assignments for the BOT
interface. Both assign 0, one is enough.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/tcm_usb_gadget.c