mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-22 23:32:39 +00:00
* grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
disk closing logic.
This commit is contained in:
1 parent
4912008551
commit
9db826e149
2 files changed
+6
-1
No files matched your search
@@ -422,7 +422,7 @@ grub_util_biosdisk_close (struct grub_disk *disk)
|
||||
struct grub_util_hostdisk_data *data = disk->data;
|
||||
|
||||
free (data->dev);
|
||||
if (!GRUB_UTIL_FD_IS_VALID (data->fd))
|
||||
if (GRUB_UTIL_FD_IS_VALID (data->fd))
|
||||
{
|
||||
if (data->access_mode == O_RDWR || data->access_mode == O_WRONLY)
|
||||
grub_util_biosdisk_flush (disk);
|
||||
|
||||
Reference in new issue
Block a user