]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
HID: logitech-hidpp: do all FF cleanup in hidpp_ff_destroy()
authorAndrey Smirnov <andrew.smirnov@gmail.com>
Fri, 18 Oct 2019 04:45:17 +0000 (21:45 -0700)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 12 Nov 2019 17:47:18 +0000 (18:47 +0100)
commitecbdcc1cb05c910c67fba20f63e953851015f968
treec9d92f17979bcbbe05ec9d59449b3c52adea5f87
parent0ede9a6878086d4a41ab4b797541dfdaa69c753c
HID: logitech-hidpp: do all FF cleanup in hidpp_ff_destroy()

BugLink: https://bugs.launchpad.net/bugs/1851550
commit 08c453f6d073f069cf8e30e03cd3c16262c9b953 upstream.

All of the FF-related resources belong to corresponding FF device, so
they should be freed as a part of hidpp_ff_destroy() to avoid
potential race condidions.

Fixes: ff21a635dd1a ("HID: logitech-hidpp: Force feedback support for the Logitech G920")
Suggested-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Cc: Jiri Kosina <jikos@kernel.org>
Cc: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Cc: Henrik Rydberg <rydberg@bitmath.org>
Cc: Pierre-Loup A. Griffais <pgriffais@valvesoftware.com>
Cc: Austin Palmer <austinp@valvesoftware.com>
Cc: linux-input@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: stable@vger.kernel.org # 5.2+
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Connor Kuehl <connor.kuehl@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/hid/hid-logitech-hidpp.c