• Myron Stowe's avatar
    ACPICA: Fix table entry truncation calculation · 386e4a83
    Myron Stowe authored
    During early boot, ACPI RSDT/XSDT table entries are gathered into the
    'initial_tables[]' array.  This array is currently statically defined (see
    ./drivers/acpi/tables.c).  When there are more table entries than can be
    held in the 'initial_tables[]' array, the message "Truncating N table
    entries!" is output.  As currently implemented, this message will always
    erroneously calculate N as 0.
    
    This patch fixes the calculation that determines how many table entries
    will be missing (truncated).
    
    This modification may be used under either the GPL or the BSD-style
    license used for Intel ACPI CA code.
    Signed-off-by: default avatarMyron Stowe <myron.stowe@hp.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLen Brown <len.brown@intel.com>
    386e4a83
tbutils.c 17 KB