mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 18:59:33 +03:00
libzfs_import.c: Uninitialized pointer read
In zpool_find_import_scan: Reads an uninitialized pointer or its target Coverity #150966 Found by static analysis with CoverityScan 0.8.5 Signed-off-by: Gvozden Neskovic <neskovic@gmail.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #4897
This commit is contained in:
parent
b264d9b3e5
commit
78867a0a0a
@ -1695,6 +1695,7 @@ zpool_find_import_scan(libzfs_handle_t *hdl, kmutex_t *lock,
|
||||
return (0);
|
||||
|
||||
error:
|
||||
cookie = NULL;
|
||||
while ((slice = avl_destroy_nodes(cache, &cookie)) != NULL) {
|
||||
free(slice->rn_name);
|
||||
free(slice);
|
||||
|
Loading…
Reference in New Issue
Block a user