From c8ab7bde3b9a75ec8b6706eda87daebc66624154 Mon Sep 17 00:00:00 2001 From: Idan Horowitz Date: Sun, 13 Feb 2022 21:21:14 +0200 Subject: Kernel: Use try_make_weak_ptr() instead of make_weak_ptr() --- Kernel/FileSystem/File.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Kernel/FileSystem') 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(); }); -- cgit v1.2.3