Re: [PATCH] usb: gadget: configfs: Ignore trailing LF for user strings to cdev

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Dec 12, 2024 at 12:10:04PM +0100, Ingo Rohloff wrote:
> Since commit c033563220e0f7a8
> ("usb: gadget: configfs: Attach arbitrary strings to cdev")
> a user can provide extra string descriptors to a USB gadget via configfs.
> 
> For "manufacturer", "product", "serialnumber", setting the string via
> configfs ignores a trailing LF.
> 
> For the arbitrary strings the LF was not ignored.
> 
> This patch ignores a trailing LF to make this consistent with the existing
> behavior for "manufacturer", ...  string descriptors.
> 
> Signed-off-by: Ingo Rohloff <ingo.rohloff@xxxxxxxxxxxxxx>
> ---
>  drivers/usb/gadget/configfs.c | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)

Shouldn't this get a Fixes: tag and cc: stable?

thanks,

greg k-h




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux