Re: [PATCH] HID: hidraw: switch to using memdup_user

2016-03-24 Thread Jiri Kosina
On Wed, 16 Mar 2016, Dmitry Torokhov wrote: > Instead of open-coding memory allocation and copying form user memory > sequence let's use memdup_user(). Makes sense. Applied, thanks. -- Jiri Kosina SUSE Labs

Re: [PATCH] HID: hidraw: switch to using memdup_user

2016-03-19 Thread Benjamin Tissoires
On Mar 16 2016 or thereabouts, Dmitry Torokhov wrote: > Instead of open-coding memory allocation and copying form user memory > sequence let's use memdup_user(). > > Signed-off-by: Dmitry Torokhov > --- Works for me: Reviewed-by: Benjamin Tissoires Cheers, Benjamin > drivers/hid/hidraw.c | 1

[PATCH] HID: hidraw: switch to using memdup_user

2016-03-19 Thread Dmitry Torokhov
Instead of open-coding memory allocation and copying form user memory sequence let's use memdup_user(). Signed-off-by: Dmitry Torokhov --- drivers/hid/hidraw.c | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/drivers/hid/hidraw.c b/drivers/hid/hidraw.c index 9c2d