# hid\_parse error

- From: Pandruvada, Srinivas \<hidden\>
- Date: 2012-04-27 18:22:53 
- List: linux-input
- Page: https://ratatoskr.run/linux-input/2012/04/8919391
- Thread: https://ratatoskr.run/linux-input/2012/04/8919391/t.md

```text
The hid_parse fails with error -22 (EINVAL) for the LOGICAL MAX value of 0xffffffff.
Basically when it gets
"0x27,0xff, 0xff, 0xff, 0xff"  it fails.

With opcode 0x27, we can have 4 bytes of payload.
I see that in  hid-core.h, the logical_maximum is defined __s32. It is interpreting 0xffffffff as -1.

Is this correct?


Thanks,
Srinivas


```
