Re: [PATCH 0/3] HID: debug: fix the ring buffer implementation

2018-10-29 Thread Vladis Dronov
gt; From: "Jiri Kosina" > To: "Vladis Dronov" > Cc: "Benjamin Tissoires" , > linux-in...@vger.kernel.org, linux-kernel@vger.kernel.org > Sent: Friday, October 26, 2018 5:25:21 PM > Subject: Re: [PATCH 0/3] HID: debug: fix the ring buffer implementatio

Re: [PATCH 0/3] HID: debug: fix the ring buffer implementation

2018-10-26 Thread Jiri Kosina
On Wed, 3 Oct 2018, Vladis Dronov wrote: > This patchset is fixing some aspects of the ring buffer implementation in > drivers/hid/hid-debug.c. This implementation has certain problem points: > > - it may stuck in an infinite loop > - it may return corrupted data > - a reader and a writer are not

[PATCH 0/3] HID: debug: fix the ring buffer implementation

2018-10-03 Thread Vladis Dronov
This patchset is fixing some aspects of the ring buffer implementation in drivers/hid/hid-debug.c. This implementation has certain problem points: - it may stuck in an infinite loop - it may return corrupted data - a reader and a writer are not protected by spinlocks, which can lead to the corru