diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2017-12-05 09:37:17 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-12-06 09:49:26 -0500 |
commit | aece09024414b54158e03aa45f4a4436e7cb996c (patch) | |
tree | 09be008cefe5ddd3e1e2590b3498853ef4414b64 | |
parent | 73996933b53ff396d63a7fccd8e824758634dc19 (diff) |
staging: ccree: Uninitialized return in ssi_ahash_import()
The return value isn't initialized on some success paths.
Fixes: c5f39d07860c ("staging: ccree: fix leak of import() after init()")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/ccree/ssi_hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/ccree/ssi_hash.c b/drivers/staging/ccree/ssi_hash.c index 1799d3f26a9e..2035835b62dc 100644 --- a/drivers/staging/ccree/ssi_hash.c +++ b/drivers/staging/ccree/ssi_hash.c | |||
@@ -1769,7 +1769,7 @@ static int ssi_ahash_import(struct ahash_request *req, const void *in) | |||
1769 | struct device *dev = drvdata_to_dev(ctx->drvdata); | 1769 | struct device *dev = drvdata_to_dev(ctx->drvdata); |
1770 | struct ahash_req_ctx *state = ahash_request_ctx(req); | 1770 | struct ahash_req_ctx *state = ahash_request_ctx(req); |
1771 | u32 tmp; | 1771 | u32 tmp; |
1772 | int rc; | 1772 | int rc = 0; |
1773 | 1773 | ||
1774 | memcpy(&tmp, in, sizeof(u32)); | 1774 | memcpy(&tmp, in, sizeof(u32)); |
1775 | if (tmp != CC_EXPORT_MAGIC) { | 1775 | if (tmp != CC_EXPORT_MAGIC) { |