changeset 13056:233e20cbda69

6975471 syseventd dumps core in zfsdle_vdev_online
author Mark J Musante <Mark.Musante@Sun.COM>
date Sun, 08 Aug 2010 07:01:38 -0600
parents 8c712bbb18ea
children 76bc2e54d54b
files usr/src/lib/libzfs/common/libzfs_pool.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/lib/libzfs/common/libzfs_pool.c	Sat Aug 07 19:27:15 2010 -0600
+++ b/usr/src/lib/libzfs/common/libzfs_pool.c	Sun Aug 08 07:01:38 2010 -0600
@@ -1862,7 +1862,8 @@
 
 	*avail_spare = B_FALSE;
 	*l2cache = B_FALSE;
-	*log = B_FALSE;
+	if (log != NULL)
+		*log = B_FALSE;
 	ret = vdev_to_nvlist_iter(nvroot, search, avail_spare, l2cache, log);
 	nvlist_free(search);