Hallo!
Whoa, that's a new one for me. That's not the old segfaulting bug. Which kernel version are you using? An easy fix would be to test to make sure the hid_input_event.type is within range, but unfortunately I am overcommitted at the moment.
kernel 2.6.15 - but I also discoverd this on older kernels...
the hid_input_event.type is 0 before it crashes - but it should be 1 (EV_KEY) and so it returns from hid_get_events ... however, I didn't find the bug ...
LG Georg