Re: [PATCH] ptp: use memdup_user().
From: Richard Cochran
Date: Fri May 20 2016 - 08:54:35 EST
On Fri, May 20, 2016 at 05:51:02PM +0530, Muhammad Falak R Wani wrote:
> Use memdup_user to duplicate a memory region from user-space to
> kernel-space, instead of open coding using kmalloc & copy_from_user.
>
> Signed-off-by: Muhammad Falak R Wani <falakreyaz@xxxxxxxxx>
Acked-by: Richard Cochran <richardcochran@xxxxxxxxx>