mirror of
				https://git.proxmox.com/git/mirror_zfs.git
				synced 2025-10-26 18:05:04 +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
							
								
									4351d18fb0
								
							
						
					
					
						commit
						5eaad8bdb5
					
				| @ -2995,7 +2995,7 @@ open_objset(const char *path, void *tag, objset_t **osp) | ||||
| 	} | ||||
| 	sa_os = *osp; | ||||
| 
 | ||||
| 	return (0); | ||||
| 	return (err); | ||||
| } | ||||
| 
 | ||||
| static void | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Richard Yao
						Richard Yao