Re: [Patch net] kcm: return immediately after copy_from_user() failure

2017-03-24 Thread David Miller
From: Cong Wang Date: Thu, 23 Mar 2017 11:03:31 -0700 > There is no reason to continue after a copy_from_user() > failure. > > Fixes: ab7ac4eb9832 ("kcm: Kernel Connection Multiplexor module") > Cc: Tom Herbert > Signed-off-by: Cong Wang Applied and queued up for -stable and this bug could ma

[Patch net] kcm: return immediately after copy_from_user() failure

2017-03-23 Thread Cong Wang
There is no reason to continue after a copy_from_user() failure. Fixes: ab7ac4eb9832 ("kcm: Kernel Connection Multiplexor module") Cc: Tom Herbert Signed-off-by: Cong Wang --- net/kcm/kcmsock.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/kcm/kcmsock.c b/net/kcm