Skip to content

Commit

Permalink
HID: hid-logitech-dj: querying_devices was never set
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nestor Lopez Casado authored and Jiri Kosina committed Jul 22, 2013
1 parent c63e0e3 commit 407a2c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/hid/hid-logitech-dj.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 407a2c2

Please sign in to comment.