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>
Sun, 8 Sep 2013 05:09:59 +0000 (22:09 -0700)
commitea599655d74e7b00caf83a0d5c056b00d19d7c2a
tree910e02aa155e33f42fdca1ebea43b3d892cf2854
parent9c289c0c140b31ce6e3b29898fd1deb80ec04b88
usb: acm gadget: Null termintate strings table

commit d257221854f0b34cca3247e6c45344d0470f7398 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/f_acm.c