summaryrefslogtreecommitdiff
path: root/Kernel/Interrupts/SpuriousInterruptHandler.cpp
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2021-05-30 21:09:23 +0430
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2021-05-31 17:09:12 +0430
commit2b5732ab7751a9f9111ab24771c0bcfc3550ab2e (patch)
tree29eb1e83e861bae70d3322e72e4b67e25b6fbf1c /Kernel/Interrupts/SpuriousInterruptHandler.cpp
parent3bc2527ce7780e7d9bbe1290e7edf044622b8314 (diff)
downloadserenity-2b5732ab7751a9f9111ab24771c0bcfc3550ab2e.zip
AK+Kernel: Disallow implicitly lifting pointers to OwnPtr's
This doesn't really _fix_ anything, it just gets rid of the API and instead makes the users explicitly use `adopt_own_if_non_null()`.
Diffstat (limited to 'Kernel/Interrupts/SpuriousInterruptHandler.cpp')
-rw-r--r--Kernel/Interrupts/SpuriousInterruptHandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Interrupts/SpuriousInterruptHandler.cpp b/Kernel/Interrupts/SpuriousInterruptHandler.cpp
index c7aae58c70..c032f44b3c 100644
--- a/Kernel/Interrupts/SpuriousInterruptHandler.cpp
+++ b/Kernel/Interrupts/SpuriousInterruptHandler.cpp
@@ -18,7 +18,7 @@ UNMAP_AFTER_INIT void SpuriousInterruptHandler::initialize(u8 interrupt_number)
void SpuriousInterruptHandler::register_handler(GenericInterruptHandler& handler)
{
VERIFY(!m_real_handler);
- m_real_handler = &handler;
+ m_real_handler = adopt_own_if_nonnull(&handler);
}
void SpuriousInterruptHandler::unregister_handler(GenericInterruptHandler&)
{