From 9b1ff49d87244507778f2203641e050e92e7057a Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Tue, 30 May 2023 14:01:23 -0400 Subject: [PATCH] kernel/io_request: Add assertion in NotifyFinished() that fStatus is set. --- src/system/kernel/device_manager/IORequest.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/system/kernel/device_manager/IORequest.cpp b/src/system/kernel/device_manager/IORequest.cpp index 2c44253ad1..0ed0aaae54 100644 --- a/src/system/kernel/device_manager/IORequest.cpp +++ b/src/system/kernel/device_manager/IORequest.cpp @@ -939,6 +939,7 @@ IORequest::NotifyFinished() TRACE("IORequest::NotifyFinished(): request: %p\n", this); MutexLocker locker(fLock); + ASSERT(fStatus != 1); if (fStatus == B_OK && !fPartialTransfer && RemainingBytes() > 0) { // The request is not really done yet. If it has an iteration callback,