mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-22 07:12:39 +00:00
* grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
freeing.
This commit is contained in:
1 parent
d336f65225
commit
1d80c62a8f
2 files changed
+7
No files matched your search
@@ -861,6 +861,7 @@ open_device (const grub_disk_t disk, grub_disk_addr_t sector, int flags,
|
||||
else
|
||||
{
|
||||
free (data->dev);
|
||||
data->dev = 0;
|
||||
if (data->fd != -1)
|
||||
{
|
||||
if (data->access_mode == O_RDWR || data->access_mode == O_WRONLY)
|
||||
@@ -941,6 +942,7 @@ open_device (const grub_disk_t disk, grub_disk_addr_t sector, int flags,
|
||||
else
|
||||
{
|
||||
free (data->dev);
|
||||
data->dev = 0;
|
||||
if (data->fd != -1)
|
||||
{
|
||||
if (data->access_mode == O_RDWR || data->access_mode == O_WRONLY)
|
||||
|
||||
Reference in new issue
Block a user