Re: [PATCH] hid-core: Avoid uninitialized buffer access

2015-09-23 Thread Jiri Kosina
On Fri, 18 Sep 2015, Darren Hart wrote: > From: Richard Purdie > > hid_connect adds various strings to the buffer but they're all > conditional. You can find circumstances where nothing would be written > to it but the kernel will still print the supposedly empty buffer with > printk. This

Re: [PATCH] hid-core: Avoid uninitialized buffer access

2015-09-23 Thread Jiri Kosina
On Fri, 18 Sep 2015, Darren Hart wrote: > From: Richard Purdie > > hid_connect adds various strings to the buffer but they're all > conditional. You can find circumstances where nothing would be written > to it but the kernel will still print the supposedly

[PATCH] hid-core: Avoid uninitialized buffer access

2015-09-18 Thread Darren Hart
From: Richard Purdie hid_connect adds various strings to the buffer but they're all conditional. You can find circumstances where nothing would be written to it but the kernel will still print the supposedly empty buffer with printk. This leads to corruption on the console/in the logs. Ensure

[PATCH] hid-core: Avoid uninitialized buffer access

2015-09-18 Thread Darren Hart
From: Richard Purdie hid_connect adds various strings to the buffer but they're all conditional. You can find circumstances where nothing would be written to it but the kernel will still print the supposedly empty buffer with printk. This leads to corruption