[PATCH] HID : core : fix hid delimiter local tag parsing.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi.

When i plug an USB HID device with the DELIMITER tag in its report descriptor, the device doesn't load.

The problem comes from the "return 1" in the DELIMITER switch of the local tags parsing.

I join a trivial patch that return no error when encounter the DELIMITER tag.

Please review it.


Regards.

Paul.
From d34e7be36d6c392578ac9c81614325f9bff9de93 Mon Sep 17 00:00:00 2001
From: Paul Chavent <paul.chavent@xxxxxxxx>
Date: Sun, 7 Jul 2013 17:43:56 +0200
Subject: [PATCH] HID : core : fix hid delimiter local tag parsing.

---
 drivers/hid/hid-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
index 36668d1..1e23ae9 100644
--- a/drivers/hid/hid-core.c
+++ b/drivers/hid/hid-core.c
@@ -450,7 +450,7 @@ static int hid_parser_local(struct hid_parser *parser, struct hid_item *item)
 			}
 			parser->local.delimiter_depth--;
 		}
-		return 1;
+		return 0;
 
 	case HID_LOCAL_ITEM_TAG_USAGE:
 
-- 
1.7.12.1


[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux