mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
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 <behlendorf1@llnl.gov> Signed-off-by: luozhengzheng <luo.zhengzheng@zte.com.cn> Closes #5209
This commit is contained in:
committed by
Brian Behlendorf
parent
5cc78dc812
commit
e2c292bbfc
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user