mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 02:49:32 +03:00
Fix NULL pointer dereference in zdb
Clang's static analyzer complained that we dereference a NULL pointer in dump_path() if we return 0 when there is an error. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu> Closes #14044
This commit is contained in:
parent
09453dea6a
commit
aa822e4d9c
@ -3067,7 +3067,7 @@ open_objset(const char *path, const void *tag, objset_t **osp)
|
||||
}
|
||||
sa_os = *osp;
|
||||
|
||||
return (0);
|
||||
return (err);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user