mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Missing disk close in libufs.
This commit is contained in:
parent
45ab79431b
commit
6a3fe71314
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=327227
|
@ -83,6 +83,7 @@ ufs_disk_fillout(struct uufsd *disk, const char *name)
|
||||||
}
|
}
|
||||||
if (sbread(disk) == -1) {
|
if (sbread(disk) == -1) {
|
||||||
ERROR(disk, "could not read superblock to fill out disk");
|
ERROR(disk, "could not read superblock to fill out disk");
|
||||||
|
ufs_disk_close(disk);
|
||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
return (0);
|
return (0);
|
||||||
|
|
Loading…
Reference in a new issue