From: Nestor Lopez Casado Date: Thu, 18 Jul 2013 13:21:31 +0000 (-0700) Subject: HID: hid-logitech-dj: querying_devices was never set X-Git-Tag: v3.11-rc4~14^2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=407a2c2a4d85100c8c67953e4bac2f4a6c942335;p=profile%2Fivi%2Fkernel-x86-ivi.git 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 Signed-off-by: Jiri Kosina --- diff --git a/drivers/hid/hid-logitech-dj.c b/drivers/hid/hid-logitech-dj.c index cd33084..7a57648 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;