]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
HID: logitech-dj: protect the paired_dj_devices access in add_djhid_dev with the...
authorHans de Goede <hdegoede@redhat.com>
Sat, 20 Apr 2019 11:21:50 +0000 (13:21 +0200)
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>
Tue, 23 Apr 2019 16:00:41 +0000 (18:00 +0200)
commitf41d766c34cbab024412d433a43d2d83a37e5135
tree2c86aad750cb8a407a61ef1f8b39329475a22cd5
parent61d14de2948e1281b178b5b890a72e9c00979cc4
HID: logitech-dj: protect the paired_dj_devices access in add_djhid_dev with the lock

This protects against logi_dj_recv_add_djhid_device, adding a device to
paired_dj_devices from the delayedwork callback, racing versus
logi_dj_raw_event trying to access that device.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
drivers/hid/hid-logitech-dj.c