From dcd4d48fc86f197f8009505712d96ffb35b8bc97 Mon Sep 17 00:00:00 2001 From: ps Date: Thu, 11 Dec 2008 02:23:49 +0000 Subject: Avoid a double free in devopen by not freeing the device structure in zfs_dev_open. This stops a panic in the loader when trying to read from a zfs device and no zfs devices exist. --- sys/boot/zfs/zfs.c | 1 - 1 file changed, 1 deletion(-) (limited to 'sys/boot') diff --git a/sys/boot/zfs/zfs.c b/sys/boot/zfs/zfs.c index e5cfad6..23f3397 100644 --- a/sys/boot/zfs/zfs.c +++ b/sys/boot/zfs/zfs.c @@ -474,7 +474,6 @@ zfs_dev_open(struct open_file *f, ...) * the pool. */ unit = dev->d_unit; - free(dev); i = 0; STAILQ_FOREACH(spa, &zfs_pools, spa_link) { -- cgit v1.1