diff options
author | luozhengzheng <[email protected]> | 2016-10-05 09:15:57 +0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-10-04 18:15:57 -0700 |
commit | e2c292bbfc9f1133c3faa46ac88f794b64da7ce2 (patch) | |
tree | b29fec24270e4ddbde174590bdcfe930ae84e00d /module/icp/io | |
parent | 5cc78dc81232bc474d25ccfcacb42d80d83c5310 (diff) |
Fix coverity defects: CID 150953, 147603, 147610
coverity scan CID:150953,type: uninitialized scalar variable
coverity scan CID:147603,type: Resource leak
coverity scan CID:147610,type: Resource leak
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: luozhengzheng <[email protected]>
Closes #5209
Diffstat (limited to 'module/icp/io')
-rw-r--r-- | module/icp/io/aes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/icp/io/aes.c b/module/icp/io/aes.c index ada697eb6..7fd66be3e 100644 --- a/module/icp/io/aes.c +++ b/module/icp/io/aes.c @@ -1282,7 +1282,7 @@ aes_common_init_ctx(aes_ctx_t *aes_ctx, crypto_spi_ctx_template_t *template, { int rv = CRYPTO_SUCCESS; void *keysched; - size_t size; + size_t size = 0; if (template == NULL) { if ((keysched = aes_alloc_keysched(&size, kmflag)) == NULL) |