X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=crypto%2Fdh.c;h=ddcb528ab2ccc7f56b48f4c9bc2108ebdfc9511c;hb=809ecb9bca6a9424ccd392d67e368160f8b76c92;hp=9d19360e71897d3971f117338c27eb151d8f3e25;hpb=f29b909db9df7e7e0bdd0b2c41e3c9d6c7db41a3;p=mirror_ubuntu-bionic-kernel.git diff --git a/crypto/dh.c b/crypto/dh.c index 9d19360e7189..ddcb528ab2cc 100644 --- a/crypto/dh.c +++ b/crypto/dh.c @@ -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 {