]> git.baikalelectronics.ru Git - kernel.git/commit
kcm: remove a useless copy_from_user()
authorWANG Cong <xiyou.wangcong@gmail.com>
Thu, 13 Apr 2017 18:38:02 +0000 (11:38 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Apr 2017 17:28:48 +0000 (13:28 -0400)
commitde43ca641772cf3054583b53aa0ad6f508bd23f5
tree2ffa78ba3e97559ff26084d8cf1e90b9ca8b4475
parent3b5b3da1a34fba23621f5b561007f877ba0269c5
kcm: remove a useless copy_from_user()

struct kcm_clone only contains fd, and kcm_clone() only
writes this struct, so there is no need to copy it from user.

Cc: Tom Herbert <tom@herbertland.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/kcm/kcmsock.c