* grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.

* grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
	(grub_set_datetime): Likewise.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-09-05 08:56:08 +02:00
parent 9cc836a27b
commit 64498f2538
3 changed files with 9 additions and 3 deletions

View file

@ -178,7 +178,7 @@ scan (void)
args.table = 0;
args.nentries = 0;
if (IEEE1275_CALL_ENTRY_FN (&args) == -1)
if (IEEE1275_CALL_ENTRY_FN (&args) == -1 || args.catch_result)
{
grub_ieee1275_close (ihandle);
return 0;