kernel/io_request: Add assertion in NotifyFinished() that fStatus is set.

This commit is contained in:
Augustin Cavalier 2023-05-30 14:01:23 -04:00
parent 831bb20728
commit 9b1ff49d87

View File

@ -939,6 +939,7 @@ IORequest::NotifyFinished()
TRACE("IORequest::NotifyFinished(): request: %p\n", this); TRACE("IORequest::NotifyFinished(): request: %p\n", this);
MutexLocker locker(fLock); MutexLocker locker(fLock);
ASSERT(fStatus != 1);
if (fStatus == B_OK && !fPartialTransfer && RemainingBytes() > 0) { if (fStatus == B_OK && !fPartialTransfer && RemainingBytes() > 0) {
// The request is not really done yet. If it has an iteration callback, // The request is not really done yet. If it has an iteration callback,