aboutsummaryrefslogtreecommitdiff
path: root/rust/helpers/workqueue.c
diff options
context:
space:
mode:
authorKevin Groeneveld <kgroeneveld@lenbrook.com>2024-10-06 19:26:31 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-10-16 10:28:28 +0200
commit9499327714de7bc5cf6c792112c1474932d8ad31 (patch)
treea6725d74827d1a9fa1dee387b3dd0061cd87aef2 /rust/helpers/workqueue.c
parent705e3ce37bccdf2ed6f848356ff355f480d51a91 (diff)
usb: gadget: f_uac2: fix return value for UAC2_ATTRIBUTE_STRING store
The configfs store callback should return the number of bytes consumed not the total number of bytes we actually stored. These could differ if for example the passed in string had a newline we did not store. If the returned value does not match the number of bytes written the writer might assume a failure or keep trying to write the remaining bytes. For example the following command will hang trying to write the final newline over and over again (tested on bash 2.05b): echo foo > function_name Fixes: 993a44fa85c1 ("usb: gadget: f_uac2: allow changing interface name via configfs") Cc: stable <stable@kernel.org> Signed-off-by: Kevin Groeneveld <kgroeneveld@lenbrook.com> Link: https://lore.kernel.org/r/20241006232637.4267-1-kgroeneveld@lenbrook.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'rust/helpers/workqueue.c')
0 files changed, 0 insertions, 0 deletions