Re: [PATCH -next v2] staging: greybus: camera: Switch to memdup_user_nul()

2021-04-01 Thread Yang Yingliang
On 2021/4/1 15:47, Dan Carpenter wrote: On Thu, Apr 01, 2021 at 10:43:32AM +0300, Dan Carpenter wrote: On Thu, Apr 01, 2021 at 11:17:52AM +0800, Yang Yingliang wrote: Use memdup_user_nul() helper instead of open-coding to simplify the code. Reported-by: Hulk Robot Signed-off-by: Yang

Re: [PATCH -next v2] staging: greybus: camera: Switch to memdup_user_nul()

2021-04-01 Thread Yang Yingliang
On 2021/4/1 15:43, Dan Carpenter wrote: On Thu, Apr 01, 2021 at 11:17:52AM +0800, Yang Yingliang wrote: Use memdup_user_nul() helper instead of open-coding to simplify the code. Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- drivers/staging/greybus/camera.c | 13 +++--

Re: [PATCH -next v2] staging: greybus: camera: Switch to memdup_user_nul()

2021-04-01 Thread Yang Yingliang
On 2021/4/1 13:59, Greg KH wrote: On Thu, Apr 01, 2021 at 11:17:52AM +0800, Yang Yingliang wrote: Use memdup_user_nul() helper instead of open-coding to simplify the code. Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- drivers/staging/greybus/camera.c | 13 +++-- 1

Re: [PATCH -next v2] staging: greybus: camera: Switch to memdup_user_nul()

2021-04-01 Thread Dan Carpenter
On Thu, Apr 01, 2021 at 10:43:32AM +0300, Dan Carpenter wrote: > On Thu, Apr 01, 2021 at 11:17:52AM +0800, Yang Yingliang wrote: > > Use memdup_user_nul() helper instead of open-coding to > > simplify the code. > > > > Reported-by: Hulk Robot > > Signed-off-by: Yang Yingliang > > --- > >

Re: [PATCH -next v2] staging: greybus: camera: Switch to memdup_user_nul()

2021-04-01 Thread Dan Carpenter
On Thu, Apr 01, 2021 at 11:17:52AM +0800, Yang Yingliang wrote: > Use memdup_user_nul() helper instead of open-coding to > simplify the code. > > Reported-by: Hulk Robot > Signed-off-by: Yang Yingliang > --- > drivers/staging/greybus/camera.c | 13 +++-- > 1 file changed, 3

Re: [PATCH -next v2] staging: greybus: camera: Switch to memdup_user_nul()

2021-04-01 Thread Greg KH
On Thu, Apr 01, 2021 at 11:17:52AM +0800, Yang Yingliang wrote: > Use memdup_user_nul() helper instead of open-coding to > simplify the code. > > Reported-by: Hulk Robot > Signed-off-by: Yang Yingliang > --- > drivers/staging/greybus/camera.c | 13 +++-- > 1 file changed, 3

[PATCH -next v2] staging: greybus: camera: Switch to memdup_user_nul()

2021-03-31 Thread Yang Yingliang
Use memdup_user_nul() helper instead of open-coding to simplify the code. Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- drivers/staging/greybus/camera.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/drivers/staging/greybus/camera.c