Skip to content

Commit

Permalink
ide_task: Check that we actually got a message when signalled.
Browse files Browse the repository at this point in the history
Apparently it's possible to get a messageport signal without there being a message
  • Loading branch information
LIV2 committed Nov 15, 2023
1 parent 8e5dcd1 commit 52e5fef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion idetask.c
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ void __attribute__((noreturn)) ide_task () {
Trace("IDE Task: WaitPort()\n");
Wait(1 << mp->mp_SigBit); // Wait for an IORequest to show up

while ((ioreq = (struct IOStdReq *)GetMsg(mp))) {
while ((ioreq = (struct IOStdReq *)GetMsg(mp)) != NULL) {
unit = (struct IDEUnit *)ioreq->io_Unit;
iotd = (struct IOExtTD *)ioreq;

Expand Down

0 comments on commit 52e5fef

Please sign in to comment.