mirror of
http://cgit.git.savannah.gnu.org/git/grub.git
synced 2026-04-28 06:33:17 +00:00
fs/hfs/hfs_open: Check that mount succeeded.
Found by: Coverity scan.
This commit is contained in:
@@ -1306,6 +1306,12 @@ grub_hfs_open (struct grub_file *file, const char *name)
|
||||
|
||||
data = grub_hfs_mount (file->device->disk);
|
||||
|
||||
if (!data)
|
||||
{
|
||||
grub_dl_unref (my_mod);
|
||||
return grub_errno;
|
||||
}
|
||||
|
||||
if (grub_hfs_find_dir (data, name, &frec, 0))
|
||||
{
|
||||
grub_free (data);
|
||||
|
||||
Reference in New Issue
Block a user