diff options
author | Shyam Prasad N <[email protected]> | 2022-07-05 11:16:24 +0000 |
---|---|---|
committer | Steve French <[email protected]> | 2022-07-12 10:35:13 -0500 |
commit | 50bd7d5a647bdf533575111c5335f49707c2ce2f (patch) | |
tree | 6aa819f3e067c1e9fa5b0d59ac91472f9785acf3 /lib/mpi/mpi-bit.c | |
parent | 32346491ddf24599decca06190ebca03ff9de7f8 (diff) |
cifs: fix race condition with delayed threads
On failure to create a new channel, first cancel the
delayed threads, which could try to search for this
channel, and not find it.
The other option was to put the tcp session for the
channel first, before decrementing chan_count. But
that would leave a reference to the tcp session, when
it has been freed already.
So going with the former option and cancelling the
delayed works first, before rolling back the channel.
Fixes: aa45dadd34e4 ("cifs: change iface_list from array to sorted linked list")
Signed-off-by: Shyam Prasad N <[email protected]>
Acked-by: Enzo Matsumiya <[email protected]>
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions