Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8edda7d2 authored by Mat Martineau's avatar Mat Martineau Committed by Herbert Xu
Browse files

crypto: dh - Consistenly return negative error codes



Fix the single instance where a positive EINVAL was returned.

Signed-off-by: default avatarMat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 109e23bd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -118,7 +118,7 @@ static int dh_compute_value(struct kpp_request *req)
	if (req->src) {
		base = mpi_read_raw_from_sgl(req->src, req->src_len);
		if (!base) {
			ret = EINVAL;
			ret = -EINVAL;
			goto err_free_val;
		}
	} else {