[ACPI] ACPICA 20050930
[deliverable/linux.git] / drivers / acpi / utilities / utalloc.c
index 068450b36475a8b9b3552594bfcfbbf1409f87b0..dc7f24b3a1c0ec2f4c72967050f5db5e97cf983e 100644 (file)
@@ -304,7 +304,7 @@ void *acpi_ut_allocate(acpi_size size, u32 component, char *module, u32 line)
 
        if (!size) {
                _ACPI_REPORT_ERROR(module, line, component,
-                                  ("ut_allocate: Attempt to allocate zero bytes\n"));
+                                  ("ut_allocate: Attempt to allocate zero bytes, allocating 1 byte\n"));
                size = 1;
        }
 
@@ -347,8 +347,8 @@ void *acpi_ut_callocate(acpi_size size, u32 component, char *module, u32 line)
 
        if (!size) {
                _ACPI_REPORT_ERROR(module, line, component,
-                                  ("ut_callocate: Attempt to allocate zero bytes\n"));
-               return_PTR(NULL);
+                                  ("ut_callocate: Attempt to allocate zero bytes, allocating 1 byte\n"));
+               size = 1;
        }
 
        allocation = acpi_os_allocate(size);
This page took 0.024378 seconds and 5 git commands to generate.