diff options
author | Michael Grzeschik <[email protected]> | 2022-07-07 13:56:12 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2022-07-08 14:58:25 +0200 |
commit | 3d0dc539029b09fbd125444c16b11a8ed10b9d0f (patch) | |
tree | aa1d9621110c19a0010bb1f07acf1c85ccb2e284 /scripts/bpf_doc.py | |
parent | 6fb9e1d94789e8ee5a258a23bc588693f743fd6c (diff) |
usb: gadget: uvc: fix changing interface name via configfs
When setting the function name, it is always truncated by one char since
snprintf is always including the null-termination in the len parameter.
We use strscpy and fix the size setting to use len + 1 instead.
Fixes: 324e4f85070f ("usb: gadget: uvc: allow changing interface name via configfs")
Signed-off-by: Michael Grzeschik <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions