sctp: use memdup_user to copy data from userspace
authorShan Wei <shanwei@cn.fujitsu.com>
Mon, 18 Apr 2011 19:13:18 +0000 (19:13 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Apr 2011 04:45:20 +0000 (21:45 -0700)
commit934253a7b4ab4151037ea9532552628723a14442
tree34958bbe96f709ff06c7e9ea77d44b96da3986d7
parent66009927f1e7374afdc6f9fdd25c493ee4eadf7c
sctp: use memdup_user to copy data from userspace

Use common function to simply code.

Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com>
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/socket.c