]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: acm gadget: Null termintate strings table
authorGraham Williams <gwilli@broadcom.com>
Wed, 28 Aug 2013 23:36:14 +0000 (16:36 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 30 Aug 2013 18:10:36 +0000 (11:10 -0700)
commitd257221854f0b34cca3247e6c45344d0470f7398
treeb9886ffc67bc56d06a05abe9dd5d2de570d1e607
parent2d17f7fb693bfb197d1e7007f2060deba78ae675
usb: acm gadget: Null termintate strings table

The gadget strings table should be null terminated.
usb_gadget_get_string() loops through the table
expecting a null at the end of the list.

Signed-off-by: Graham Williams <gwilli@broadcom.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/f_acm.c