[PATCH 3.18 085/108] HID: debug: fix the ring buffer implementation