HID: fix parsing of local delimiter with size 0
authorJiri Kosina <jkosina@suse.cz>
Tue, 5 Jan 2010 10:45:52 +0000 (11:45 +0100)
committerJiri Kosina <jkosina@suse.cz>
Tue, 5 Jan 2010 10:45:52 +0000 (11:45 +0100)
commit722612cd51cf1b574c89dff57cc5dbedf1f645bb
tree4e72c3af6430ed32048d158239ad714d750adf7f
parentcf2f765f1896064e34c6f0f2ef896ff058dd5c06
HID: fix parsing of local delimiter with size 0

Acording to HID standard 1.11, value 0 allows for size being 0.
Local delimiter tag has has 0 one of the possible values.

Therefore we need to handle this case properly, to be fully compliant
with the specification.

Reported-by: Marcin Tolysz <tolysz@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-core.c