projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
109e23b
)
crypto: dh - Consistenly return negative error codes
author
Mat Martineau
<mathew.j.martineau@linux.intel.com>
Tue, 8 Nov 2016 23:48:22 +0000
(15:48 -0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Sun, 13 Nov 2016 09:45:04 +0000
(17:45 +0800)
Fix the single instance where a positive EINVAL was returned.
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/dh.c
patch
|
blob
|
history
diff --git
a/crypto/dh.c
b/crypto/dh.c
index 9d19360e71897d3971f117338c27eb151d8f3e25..ddcb528ab2ccc7f56b48f4c9bc2108ebdfc9511c 100644
(file)
--- 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 {