[PATCH 5.6 27/71] acpi/nfit: improve bounds checking for func