/* Walk the resource list until the end_tag is found (or buffer end) */
while (resource < resource_end) {
+
/* Sanity check the resource */
if (resource->type > ACPI_RESOURCE_TYPE_MAX) {
status = user_function(resource, context);
if (ACPI_FAILURE(status)) {
if (status == AE_CTRL_TERMINATE) {
+
/* This is an OK termination by the user function */
status = AE_OK;