]> git.baikalelectronics.ru Git - kernel.git/commit
ptp: use memdup_user().
authorMuhammad Falak R Wani <falakreyaz@gmail.com>
Fri, 20 May 2016 12:21:02 +0000 (17:51 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 May 2016 21:05:30 +0000 (14:05 -0700)
commit772220f1a1565be0fc515b9113331e5421716e2e
treeed65b8a1f79facfd32b90da59f7d32c1784723a1
parent7be4ac5fc9a721e9654bdde3259090765550fc07
ptp: use memdup_user().

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@gmail.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ptp/ptp_chardev.c