]> git.baikalelectronics.ru Git - kernel.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)
commitbf2927fe1523c64000437e9a23d060f1f523159d
treeb9886ffc67bc56d06a05abe9dd5d2de570d1e607
parent87c1cd8a9bbe2462722c792c352e21259e0cba47
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