staging: rtl8192e: Remove mutex from rtllib_softmac_free()
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Sun, 24 Sep 2023 19:50:55 +0000 (21:50 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Sep 2023 09:14:32 +0000 (11:14 +0200)
commitd17631c44dea13f7cd6bced705b5c8c8c0bf69c1
tree147faf52792dcfa1f7272686a2d961f3cf1657d0
parent1579c70661fa95d8ae6910fb80de431260552f46
staging: rtl8192e: Remove mutex from rtllib_softmac_free()

The following commands use the mutex ieee->wx_mutex:
cancel_delayed_work_sync(&ieee->associate_retry_wq)
cancel_delayed_work_sync(&ieee->associate_procedure_wq)
cancel_work_sync(&ieee->wx_sync_scan_wq)
Therefore they cannot be canceled with ieee->wx_mutex locked. As the
work functions are executed time shifted during normal operation of the
driver, proper locking can only be done inside the functions.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/a5308876bd8fabcb5f8b25d14dbad2c1f68ce59f.1695582999.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtllib_softmac.c