summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHuacai Chen <chenhuacai@loongson.cn>2026-11-10 17:20:29 +0800
committerHuacai Chen <chenhuacai@loongson.cn>2026-11-10 17:20:29 +0800
commit09d28f8d47ce8fd8ac8da34e46abe560e48804e2 (patch)
treedc3e804913c4b215f7d2a61850730e2f396cef00 /include
parent2ccdfa6c93021ee3fca2e55d3757769ac2b69b30 (diff)
ACPI: LoongArch: Validate ACPI IOVT device entries
START and END device entries in ACPI IOVT should be paired and adjacent, while SINGLE entries shouldn't be between START and END. So add a iovt_validate_entries() function to validate the entries before the real parsing. By the way, move kzalloc_obj() from the ACPI_IOVT_DEVICE_ENTRY_END case to the ACPI_IOVT_DEVICE_ENTRY_START case, so as to avoid NULL pointer dereference. Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions