Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
ACPI / tables: Fix a NULL pointer dereference in acpi_table_initrd_ov…
…erride() In acpi_table_initrd_override(), the return value of acpi_os_map_memory() is assigned to table and there is a dereference of it after that. acpi_os_map_memory() will return NULL on failure, which may lead to NULL pointer dereference. Fix this bug by adding a NULL check of table. This bug was found by a static analyzer. Builds with 'make allyesconfig' show no new warnings, and our static analyzer no longer warns about this code. Fixes: 5ae74f2 ("ACPI / tables: Move table override mechanisms to tables.c") Signed-off-by: Zhou Qingyang <zhou1615@umn.edu>
- Loading branch information