* grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
disk closing logic.
This commit is contained in:
parent
4912008551
commit
9db826e149
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
|
||||||
|
disk closing logic.
|
||||||
|
|
||||||
2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
|
2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
|
||||||
|
|
||||||
* docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
|
* docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
|
||||||
|
|
|
@ -422,7 +422,7 @@ grub_util_biosdisk_close (struct grub_disk *disk)
|
||||||
struct grub_util_hostdisk_data *data = disk->data;
|
struct grub_util_hostdisk_data *data = disk->data;
|
||||||
|
|
||||||
free (data->dev);
|
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)
|
if (data->access_mode == O_RDWR || data->access_mode == O_WRONLY)
|
||||||
grub_util_biosdisk_flush (disk);
|
grub_util_biosdisk_flush (disk);
|
||||||
|
|
Loading…
Reference in a new issue