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