summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2022-02-13 21:21:14 +0200
committerAndreas Kling <kling@serenityos.org>2022-02-13 23:02:57 +0100
commitc8ab7bde3b9a75ec8b6706eda87daebc66624154 (patch)
treec4144cd0731dde8a37979378340360eb9d43f7c9 /Kernel/FileSystem
parent98c20b65cc1e436e805f066bf2b007ebf0a798ec (diff)
downloadserenity-c8ab7bde3b9a75ec8b6706eda87daebc66624154.zip
Kernel: Use try_make_weak_ptr() instead of make_weak_ptr()
Diffstat (limited to 'Kernel/FileSystem')
-rw-r--r--Kernel/FileSystem/File.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/FileSystem/File.h b/Kernel/FileSystem/File.h
index cdc66fd9d8..05dedd9d90 100644
--- a/Kernel/FileSystem/File.h
+++ b/Kernel/FileSystem/File.h
@@ -128,7 +128,7 @@ protected:
// If called from an IRQ handler we need to delay evaluation
// and unblocking of waiting threads. Note that this File
// instance may be deleted until the deferred call is executed!
- Processor::deferred_call_queue([self = make_weak_ptr()]() {
+ Processor::deferred_call_queue([self = try_make_weak_ptr().release_value_but_fixme_should_propagate_errors()]() {
if (auto file = self.strong_ref())
file->do_evaluate_block_conditions();
});