]> Pileus Git - ~andy/linux/commitdiff
HID: hid-logitech-dj: querying_devices was never set
authorNestor Lopez Casado <nlopezcasad@logitech.com>
Thu, 18 Jul 2013 13:21:31 +0000 (06:21 -0700)
committerJiri Kosina <jkosina@suse.cz>
Mon, 22 Jul 2013 14:32:24 +0000 (16:32 +0200)
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>
drivers/hid/hid-logitech-dj.c

index cd33084c78602146d42efca60e358d08f00da219..7a5764843bfb646d2b90526a2e9f6619931b48f9 100644 (file)
@@ -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;