commit | 2ece068e1b1d6e76ecd07e04b027013e931287ff | [log] [tgz] |
---|---|---|
author | Muhammad Falak R Wani <falakreyaz@gmail.com> | Fri May 20 17:51:02 2016 +0530 |
committer | David S. Miller <davem@davemloft.net> | Mon May 23 14:05:30 2016 -0700 |
tree | ed65b8a1f79facfd32b90da59f7d32c1784723a1 | |
parent | 8da07a393f48864a87c61bb1dfbee640d9b97fd6 [diff] |
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>