* util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
* grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for now to avoid double free. * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to hostdisk. * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK. * util/grub-probe.c (escape_of_path): Always return a new copy. (print_full_name): Escape path. (probe): Don't call grub_util_devname_to_ofpath on NULL. Fix hints on abstractions.
This commit is contained in:
parent
ebe2c96154
commit
63fe43f3c3
6 changed files with 60 additions and 18 deletions
|
@ -658,6 +658,7 @@ grub_cryptodisk_memberlist (grub_disk_t disk)
|
|||
static void
|
||||
cryptodisk_cleanup (void)
|
||||
{
|
||||
#if 0
|
||||
grub_cryptodisk_t dev = cryptodisk_list;
|
||||
grub_cryptodisk_t tmp;
|
||||
|
||||
|
@ -671,6 +672,7 @@ cryptodisk_cleanup (void)
|
|||
grub_free (dev);
|
||||
dev = tmp;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
grub_err_t
|
||||
|
|
|
@ -1107,8 +1107,8 @@ grub_util_biosdisk_close (struct grub_disk *disk)
|
|||
|
||||
static struct grub_disk_dev grub_util_biosdisk_dev =
|
||||
{
|
||||
.name = "biosdisk",
|
||||
.id = GRUB_DISK_DEVICE_BIOSDISK_ID,
|
||||
.name = "hostdisk",
|
||||
.id = GRUB_DISK_DEVICE_HOSTDISK_ID,
|
||||
.iterate = grub_util_biosdisk_iterate,
|
||||
.open = grub_util_biosdisk_open,
|
||||
.close = grub_util_biosdisk_close,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue