diff options
author | Ingo Rohloff <ingo.rohloff@lauterbach.com> | 2024-12-12 16:41:14 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-12-23 18:50:53 +0100 |
commit | 9466545720e231fc02acd69b5f4e9138e09a26f6 (patch) | |
tree | c809f3a8efec1c8d7aee8953b9acb87dc0f3a790 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 7a3d76a0b60b3f6fc3375e4de2174bab43f64545 (diff) |
usb: gadget: configfs: Ignore trailing LF for user strings to cdev
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.
Fixes: c033563220e0 ("usb: gadget: configfs: Attach arbitrary strings to cdev")
Cc: stable <stable@kernel.org>
Signed-off-by: Ingo Rohloff <ingo.rohloff@lauterbach.com>
Link: https://lore.kernel.org/r/20241212154114.29295-1-ingo.rohloff@lauterbach.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions