diff options
author | Linyu Yuan <[email protected]> | 2022-06-10 20:17:57 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2022-06-10 14:45:38 +0200 |
commit | fb1f16d74e263baa4ad11e31e28b68f144aa55ed (patch) | |
tree | fea4ba8532053b0ebbbab1992ba82c9ebcecf5a3 /scripts/gdb/linux/timerlist.py | |
parent | 802dcafc420af536fcde1b44ac51ca211f4ec673 (diff) |
usb: gadget: f_fs: change ep->status safe in ffs_epfile_io()
If a task read/write data in blocking mode, it will wait the completion
in ffs_epfile_io(), if function unbind occurs, ffs_func_unbind() will
kfree ffs ep, once the task wake up, it still dereference the ffs ep to
obtain the request status.
Fix it by moving the request status to io_data which is stack-safe.
Cc: <[email protected]> # 5.15
Reported-by: Michael Wu <[email protected]>
Tested-by: Michael Wu <[email protected]>
Reviewed-by: John Keeping <[email protected]>
Signed-off-by: Linyu Yuan <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions