diff options
author | Nestor Lopez Casado <nlopezcasad@logitech.com> | 2013-07-18 06:21:31 -0700 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2013-07-22 16:32:24 +0200 |
commit | 407a2c2a4d85100c8c67953e4bac2f4a6c942335 (patch) | |
tree | 12a09e90a06146831bb9dc55da7329e13d77cae0 /drivers/hid/hid-logitech-dj.c | |
parent | c63e0e370028d7e4033bd40165f18499872b5183 (diff) | |
download | linux-407a2c2a4d85100c8c67953e4bac2f4a6c942335.tar.bz2 |
HID: hid-logitech-dj: querying_devices was never set
Set querying_devices flag to true when we start the enumeration
process.
This was missing from the original patch. It never produced
undesirable effects as it is highly improbable to have a second
enumeration triggered while a first one was still in progress.
Signed-off-by: Nestor Lopez Casado <nlopezcasad@logitech.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-logitech-dj.c')
-rw-r--r-- | drivers/hid/hid-logitech-dj.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/hid/hid-logitech-dj.c b/drivers/hid/hid-logitech-dj.c index cd33084c7860..7a5764843bfb 100644 --- a/drivers/hid/hid-logitech-dj.c +++ b/drivers/hid/hid-logitech-dj.c @@ -488,6 +488,8 @@ static int logi_dj_recv_query_paired_devices(struct dj_receiver_dev *djrcv_dev) if (djrcv_dev->querying_devices) return 0; + djrcv_dev->querying_devices = true; + dj_report = kzalloc(sizeof(struct dj_report), GFP_KERNEL); if (!dj_report) return -ENOMEM; |