mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 02:44:41 +03:00
Fix coverity defects: CID 147551, 147552
CID 147551: Type:dereference null return value CID 147552: Type:dereference null return value Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: cao.xuewen <cao.xuewen@zte.com.cn> Closes #5279
This commit is contained in:
@@ -2773,6 +2773,10 @@ zfs_ioc_inherit_prop(zfs_cmd_t *zc)
|
||||
}
|
||||
|
||||
pair = nvlist_next_nvpair(dummy, NULL);
|
||||
if (pair == NULL) {
|
||||
nvlist_free(dummy);
|
||||
return (SET_ERROR(EINVAL));
|
||||
}
|
||||
err = zfs_prop_set_special(zc->zc_name, source, pair);
|
||||
nvlist_free(dummy);
|
||||
if (err != -1)
|
||||
|
||||
Reference in New Issue
Block a user