From: Greg KH <greg@kroah.com>
To: Graham Williams <gwilli@broadcom.com>
Cc: "linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"balbi@ti.com" <balbi@ti.com>
Subject: Re: [PATCH] usb: acm gadget: Null termintate strings table
Date: Fri, 23 Aug 2013 11:21:21 -0700 [thread overview]
Message-ID: <20130823182121.GA12543@kroah.com> (raw)
In-Reply-To: <063828A851006E448B735F1021E028962ACE72A6@SJEXCHMB09.corp.ad.broadcom.com>
On Fri, Aug 23, 2013 at 05:51:12PM +0000, Graham Williams wrote:
>
> 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>
Nice, that works.
> ---
> drivers/usb/gadget/f_acm.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/usb/gadget/f_acm.c b/drivers/usb/gadget/f_acm.c
> index 4b7e33e..ab1065a 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[] = {
> [ACM_CTRL_IDX].s = "CDC Abstract Control Model (ACM)",
> [ACM_DATA_IDX].s = "CDC ACM Data",
> [ACM_IAD_IDX ].s = "CDC Serial",
> + { } /* end of list */
But this doesn't at all :(
Please fix your email client to not convert tabs to spaces. Email the
patch to yourself and see if you can apply it properly first. Also, the
kernel file, Documentation/email_clients.txt will help in setting things
up properly.
thanks,
greg k-h
next prev parent reply other threads:[~2013-08-23 18:21 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-23 17:51 [PATCH] usb: acm gadget: Null termintate strings table Graham Williams
2013-08-23 18:21 ` Greg KH [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-08-28 23:36 Graham Williams
2013-08-30 18:11 ` Greg Kroah-Hartman
2013-08-23 23:19 Graham Williams
2013-08-23 23:36 ` Greg KH
2013-08-23 17:43 Graham Williams
2013-08-23 17:49 ` Greg KH
2013-08-22 19:10 Graham Williams
2013-08-27 20:03 ` Felipe Balbi
2013-08-20 15:17 Graham Williams
2013-08-23 17:41 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130823182121.GA12543@kroah.com \
--to=greg@kroah.com \
--cc=balbi@ti.com \
--cc=gwilli@broadcom.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.