Message ID | 1654006119-23869-1-git-send-email-quic_linyyuan@quicinc.com |
---|---|
Headers | show |
Series | usb: f_fs: safe operation in ffs_epfile_io() | expand |
On Tue, May 31, 2022 at 10:08:38PM +0800, Linyu Yuan wrote: > 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. > > Signed-off-by: Linyu Yuan <quic_linyyuan@quicinc.com> Reviewed-by: John Keeping <john@metanate.com>