mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-18 02:20:59 +03:00
Prune dead branch reported by Coverity
wkey is NULL at every `goto error;`. dcp is never NULL. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ryan Moeller <ryan@iXsystems.com> Closes #10884
This commit is contained in:
parent
626abe164d
commit
875307b6a1
@ -235,11 +235,7 @@ dsl_crypto_params_create_nvlist(dcp_cmd_t cmd, nvlist_t *props,
|
|||||||
return (0);
|
return (0);
|
||||||
|
|
||||||
error:
|
error:
|
||||||
if (wkey != NULL)
|
kmem_free(dcp, sizeof (dsl_crypto_params_t));
|
||||||
dsl_wrapping_key_free(wkey);
|
|
||||||
if (dcp != NULL)
|
|
||||||
kmem_free(dcp, sizeof (dsl_crypto_params_t));
|
|
||||||
|
|
||||||
*dcp_out = NULL;
|
*dcp_out = NULL;
|
||||||
return (ret);
|
return (ret);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user