]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
functionfs: need to cancel ->reset_work in ->kill_sb()
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 17 Nov 2025 21:49:59 +0000 (16:49 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 18 Nov 2025 04:53:51 +0000 (23:53 -0500)
commit1544775687f093e799439fca5519340b88c84e2c
treead4f3b00060e2580c8e40539e3fcc21787dd32a0
parentfe47466282a69499ae17a22f064e827badb77078
functionfs: need to cancel ->reset_work in ->kill_sb()

... otherwise we just might free ffs with ffs->reset_work
still on queue.  That needs to be done after ffs_data_reset() -
that's the cutoff point for configfs accesses (serialized
on gadget_info->lock), which is where the schedule_work()
would come from.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/usb/gadget/function/f_fs.c