mirror of
https://git.proxmox.com/git/grub2
synced 2026-01-26 23:40:31 +00:00
* grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
disk. * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
This commit is contained in:
parent
182c872a7b
commit
dbd3a32e43
@ -1,3 +1,9 @@
|
||||
2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
|
||||
disk.
|
||||
* grub-core/disk/lvm.c (do_lvm_scan): Likewise.
|
||||
|
||||
2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
|
||||
|
||||
* util/grub-mkrescue.in: Fix handling xorriso option.
|
||||
|
||||
@ -157,8 +157,8 @@ do_lvm_scan (const char *scan_for)
|
||||
&& pv->disk->dev->id == disk->dev->id
|
||||
&& grub_partition_get_start (pv->disk->partition)
|
||||
== grub_partition_get_start (disk->partition)
|
||||
&& grub_partition_get_len (pv->disk->partition)
|
||||
== grub_partition_get_len (disk->partition))
|
||||
&& grub_disk_get_size (pv->disk)
|
||||
== grub_disk_get_size (disk))
|
||||
{
|
||||
grub_disk_close (disk);
|
||||
return 0;
|
||||
|
||||
@ -123,8 +123,8 @@ scan_devices (const char *arname)
|
||||
&& m->device->dev->id == m->device->dev->id
|
||||
&& grub_partition_get_start (m->device->partition)
|
||||
== grub_partition_get_start (disk->partition)
|
||||
&& grub_partition_get_len (m->device->partition)
|
||||
== grub_partition_get_len (disk->partition))
|
||||
&& grub_disk_get_size (m->device)
|
||||
== grub_disk_get_size (disk))
|
||||
{
|
||||
grub_disk_close (disk);
|
||||
return 0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user