summaryrefslogtreecommitdiffstats
path: root/lib/libdisk
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2004-01-30 20:52:54 +0000
committermarcel <marcel@FreeBSD.org>2004-01-30 20:52:54 +0000
commit9de97de17519d9f02f15b8d562eb266a246776e3 (patch)
tree4f9046fa7d44a0459696b8214632e91e0e223279 /lib/libdisk
parent822c3ce335a13f15b6ab26c77791ae4f40e3ad06 (diff)
downloadFreeBSD-src-9de97de17519d9f02f15b8d562eb266a246776e3.zip
FreeBSD-src-9de97de17519d9f02f15b8d562eb266a246776e3.tar.gz
In Write_Disk(), fix the non-error case where we returned to the
caller without closing the disk device and freeing allocated memory. Not closing the disk device prevents GEOM from retasting after spoiling. Pointy hat: marcel
Diffstat (limited to 'lib/libdisk')
-rw-r--r--lib/libdisk/write_ia64_disk.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/libdisk/write_ia64_disk.c b/lib/libdisk/write_ia64_disk.c
index b57bbd8..0b57fdf 100644
--- a/lib/libdisk/write_ia64_disk.c
+++ b/lib/libdisk/write_ia64_disk.c
@@ -412,10 +412,6 @@ Write_Disk(const struct disk *disk)
* Update and write the in-memory copy of the GPT.
*/
error = update_gpt(fd, disk, hdr, tbl);
- if (error)
- goto bail;
-
- return (0);
bail:
close(fd);
OpenPOWER on IntegriCloud