mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 23:25:07 +00:00
Input: synaptics-rmi4 - destroy F54 poller workqueue when removing
commit ba60cf9f78
upstream.
The driver forgets to destroy workqueue in remove() similarly to what is
done when probe() fails. Add a call to destroy_workqueue() to fix it.
Since unregistration will wait for the work to finish, we do not need to
cancel/flush the work instance in remove().
Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20191114023405.31477-1-hslester96@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5c9fd709c5
commit
1f3bbf9f0a
1 changed files with 1 additions and 0 deletions
|
@ -742,6 +742,7 @@ static void rmi_f54_remove(struct rmi_function *fn)
|
|||
|
||||
video_unregister_device(&f54->vdev);
|
||||
v4l2_device_unregister(&f54->v4l2);
|
||||
destroy_workqueue(f54->workqueue);
|
||||
}
|
||||
|
||||
struct rmi_function_handler rmi_f54_handler = {
|
||||
|
|
Loading…
Reference in a new issue