diff --git a/net/tls/tls_main.c b/net/tls/tls_main.c index a6c3702e0ddbb96962d9976809d20bdd5d3bf402..c105f86a7ea628dc15996c7c563087be52dae251 100644 --- a/net/tls/tls_main.c +++ b/net/tls/tls_main.c @@ -376,7 +376,7 @@ static int do_tls_setsockopt_tx(struct sock *sk, char __user *optval, rc = copy_from_user(crypto_info, optval, sizeof(*crypto_info)); if (rc) { rc = -EFAULT; - goto out; + goto err_crypto_info; } /* check version */