diff options
author | Graham Williams <gwilli@broadcom.com> | 2013-08-28 19:36:14 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-30 14:10:36 -0400 |
commit | d257221854f0b34cca3247e6c45344d0470f7398 (patch) | |
tree | b9886ffc67bc56d06a05abe9dd5d2de570d1e607 /drivers/usb | |
parent | 2d17f7fb693bfb197d1e7007f2060deba78ae675 (diff) |
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>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/gadget/f_acm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/f_acm.c b/drivers/usb/gadget/f_acm.c index 4b7e33e5d9c6..ab1065afbbd0 100644 --- a/drivers/usb/gadget/f_acm.c +++ b/drivers/usb/gadget/f_acm.c | |||
@@ -285,6 +285,7 @@ static struct usb_string acm_string_defs[] = { | |||
285 | [ACM_CTRL_IDX].s = "CDC Abstract Control Model (ACM)", | 285 | [ACM_CTRL_IDX].s = "CDC Abstract Control Model (ACM)", |
286 | [ACM_DATA_IDX].s = "CDC ACM Data", | 286 | [ACM_DATA_IDX].s = "CDC ACM Data", |
287 | [ACM_IAD_IDX ].s = "CDC Serial", | 287 | [ACM_IAD_IDX ].s = "CDC Serial", |
288 | { } /* end of list */ | ||
288 | }; | 289 | }; |
289 | 290 | ||
290 | static struct usb_gadget_strings acm_string_table = { | 291 | static struct usb_gadget_strings acm_string_table = { |