kcm: return immediately after copy_from_user() failure
authorWANG Cong <xiyou.wangcong@gmail.com>
Thu, 23 Mar 2017 18:03:31 +0000 (11:03 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Mar 2017 20:13:53 +0000 (13:13 -0700)
commita80db69e47d764bbcaf2fec54b1f308925e7c490
tree3ea517edcaa774dc86f59f34d11699a4ef75a355
parenta5af83925363eb85d467933e3d6ec5a87001eb7c
kcm: return immediately after copy_from_user() failure

There is no reason to continue after a copy_from_user()
failure.

Fixes: ab7ac4eb9832 ("kcm: Kernel Connection Multiplexor module")
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