2009-10-28 Felix Zielcke <fzielcke@z-51.de>

* commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
	strings.
This commit is contained in:
fzielcke 2009-10-28 18:24:10 +00:00
parent cefabfe1c4
commit fdcdde1905
2 changed files with 9 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2009-10-28 Felix Zielcke <fzielcke@z-51.de>
* commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
strings.
2009-10-26 Robert Millan <rmh.grub@aybabtu.com> 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
* autogen.sh: Support addition of external modules via `GRUB_CONTRIB' * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'

View file

@ -552,7 +552,7 @@ grub_cmd_acpi (struct grub_extcmd *cmd,
grub_free (exclude); grub_free (exclude);
grub_free (load_only); grub_free (load_only);
return grub_error (GRUB_ERR_OUT_OF_MEMORY, return grub_error (GRUB_ERR_OUT_OF_MEMORY,
"Could allocate table"); "Couldn't allocate table");
} }
grub_memcpy (table_dsdt, dsdt, dsdt->length); grub_memcpy (table_dsdt, dsdt, dsdt->length);
} }
@ -579,7 +579,7 @@ grub_cmd_acpi (struct grub_extcmd *cmd,
grub_free (exclude); grub_free (exclude);
grub_free (load_only); grub_free (load_only);
return grub_error (GRUB_ERR_OUT_OF_MEMORY, return grub_error (GRUB_ERR_OUT_OF_MEMORY,
"Could allocate table structure"); "Couldn't allocate table structure");
} }
table->size = curtable->length; table->size = curtable->length;
table->addr = grub_malloc (table->size); table->addr = grub_malloc (table->size);
@ -588,7 +588,7 @@ grub_cmd_acpi (struct grub_extcmd *cmd,
{ {
free_tables (); free_tables ();
return grub_error (GRUB_ERR_OUT_OF_MEMORY, return grub_error (GRUB_ERR_OUT_OF_MEMORY,
"Could allocate table"); "Couldn't allocate table");
} }
table->next = acpi_tables; table->next = acpi_tables;
acpi_tables = table; acpi_tables = table;
@ -675,7 +675,7 @@ grub_cmd_acpi (struct grub_extcmd *cmd,
{ {
free_tables (); free_tables ();
return grub_error (GRUB_ERR_OUT_OF_MEMORY, return grub_error (GRUB_ERR_OUT_OF_MEMORY,
"Could allocate table structure"); "Couldn't allocate table structure");
} }
table->size = size; table->size = size;