mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
Fix crash caused by invalid snapshot names in redactnvl
This is a follow up fix for commit 0fdd6106bb. The VERIFY is
only true when we haven't hit an error code path. See added
test case for a reproducer.
Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Christian Schwarz <me@cschwarz.com>
Closes #11048
This commit is contained in:
committed by
Brian Behlendorf
parent
d8091c9294
commit
05f8be3b49
@@ -1062,9 +1062,9 @@ dmu_redact_snap(const char *snapname, nvlist_t *redactnvl,
|
||||
|
||||
}
|
||||
}
|
||||
VERIFY3P(nvlist_next_nvpair(redactnvl, pair), ==, NULL);
|
||||
if (err != 0)
|
||||
goto out;
|
||||
VERIFY3P(nvlist_next_nvpair(redactnvl, pair), ==, NULL);
|
||||
|
||||
boolean_t resuming = B_FALSE;
|
||||
zfs_bookmark_phys_t bookmark;
|
||||
|
||||
Reference in New Issue
Block a user