Re: [PATCH] USB: iowarrior: use memdup_user

2017-05-15 Thread Johan Hovold
On Sat, May 13, 2017 at 11:16:00AM +0800, Geliang Tang wrote: > Use memdup_user() helper instead of open-coding to simplify the code. > > Signed-off-by: Geliang Tang Looks good to me: Reviewed-by: Johan Hovold > --- > drivers/usb/misc/iowarrior.c | 11 +++ > 1 file changed, 3 inserti

[PATCH] USB: iowarrior: use memdup_user

2017-05-12 Thread Geliang Tang
Use memdup_user() helper instead of open-coding to simplify the code. Signed-off-by: Geliang Tang --- drivers/usb/misc/iowarrior.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/usb/misc/iowarrior.c b/drivers/usb/misc/iowarrior.c index 7756953..816afad 10