Skip to content

Commit

Permalink
utilities: log errors in uacpi_get_pci_routing_table
Browse files Browse the repository at this point in the history
These lead to method abort, therefore they're errors.

Signed-off-by: Daniil Tatianin <99danilt@gmail.com>
  • Loading branch information
d-tatianin committed May 29, 2024
1 parent a387fcf commit bd4a2ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/utilities.c
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,7 @@ uacpi_status uacpi_get_pci_routing_table(

table_pkg = obj->package;
if (uacpi_unlikely(table_pkg->count == 0 || table_pkg->count > 1024)) {
uacpi_warn("invalid number of _PRT entries: %zu\n", table_pkg->count);
uacpi_error("invalid number of _PRT entries: %zu\n", table_pkg->count);
uacpi_object_unref(obj);
return UACPI_STATUS_AML_BAD_ENCODING;
}
Expand All @@ -1113,8 +1113,8 @@ uacpi_status uacpi_get_pci_routing_table(

entry_pkg = entry_obj->package;
if (uacpi_unlikely(entry_pkg->count != 4)) {
uacpi_warn("invalid _PRT sub-package entry count %zu\n",
entry_pkg->count);
uacpi_error("invalid _PRT sub-package entry count %zu\n",
entry_pkg->count);
goto out_bad_encoding;
}

Expand Down

0 comments on commit bd4a2ac

Please sign in to comment.