diff options
author | Jean-Baptiste Boric <jblbeurope@gmail.com> | 2021-01-20 20:28:26 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-22 22:17:39 +0100 |
commit | 06b73eea94a695f6a9f2c6bdd89e839e262b7da2 (patch) | |
tree | 604f53381e52df1fe9c792b01803d13ca7f33198 | |
parent | 2f8b047339fade5a4f93ab1fd02c06eb2e740def (diff) | |
download | serenity-06b73eea94a695f6a9f2c6bdd89e839e262b7da2.zip |
Kernel: Do not assert if unable to load kernel symbols
-rw-r--r-- | Kernel/KSyms.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Kernel/KSyms.cpp b/Kernel/KSyms.cpp index fe0db7add4..6ccf816af6 100644 --- a/Kernel/KSyms.cpp +++ b/Kernel/KSyms.cpp @@ -191,11 +191,12 @@ void dump_backtrace() void load_kernel_symbol_table() { auto result = VFS::the().open("/res/kernel.map", O_RDONLY, 0, VFS::the().root_custody()); - ASSERT(!result.is_error()); - auto description = result.value(); - auto buffer = description->read_entire_file(); - ASSERT(!buffer.is_error()); - load_kernel_sybols_from_data(*buffer.value()); + if (!result.is_error()) { + auto description = result.value(); + auto buffer = description->read_entire_file(); + if (!buffer.is_error()) + load_kernel_sybols_from_data(*buffer.value()); + } } } |