Re: [PATCH 1/2] staging: vt6656: use off stack for out buffer USB transfers.

2017-04-28 Thread Greg KH
On Sat, Apr 22, 2017 at 11:14:57AM +0100, Malcolm Priestley wrote: > Since 4.9 mandated USB buffers be heap allocated this causes the driver > to fail. It's really been a requirement since the 2.2 days, it's just that not many people ran USB drivers on the platforms that required it :) thanks, g

[PATCH 1/2] staging: vt6656: use off stack for out buffer USB transfers.

2017-04-22 Thread Malcolm Priestley
Since 4.9 mandated USB buffers be heap allocated this causes the driver to fail. Since there is a wide range of buffer sizes use kmemdup to create allocated buffer. Signed-off-by: Malcolm Priestley Cc: # v4.9+ --- drivers/staging/vt6656/usbpipe.c | 14 -- 1 file changed, 12 inserti