Re: [PATCH] USB: cdc-wdm: fix read buffer overflow

2013-02-14 Thread Oliver Neukum
On Thursday 14 February 2013 13:53:26 Bjørn Mork wrote: > Do not scribble past end of buffer. Check if the userspace buffer has > enough space available before attempting to move more data there. Throw > away all previously read data if the buffer is full. > > Cc: stable > Signed-off-by: Bjørn M

[PATCH] USB: cdc-wdm: fix read buffer overflow

2013-02-14 Thread Bjørn Mork
Do not scribble past end of buffer. Check if the userspace buffer has enough space available before attempting to move more data there. Throw away all previously read data if the buffer is full. Cc: stable Signed-off-by: Bjørn Mork --- Hello Oliver! I hope I am missing something here... This