2009-04-08 Felix Zielcke <fzielcke@z-51.de>

* disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
This commit is contained in:
fzielcke 2009-04-08 15:03:50 +00:00
parent ea3f72cf0e
commit af63ada2bd
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2009-04-08 Felix Zielcke <fzielcke@z-51.de>
* disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
2009-04-07 David S. Miller <davem@davemloft.net>
* kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add

View File

@ -530,7 +530,8 @@ grub_lvm_scan_device (const char *name)
goto fail4;
}
p = grub_strchr (p, '}');
if (p != NULL)
p = grub_strchr (p, '}');
if (p == NULL)
goto lvs_fail;
p += 3;