Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
KrahJohlito committed Sep 21, 2024
1 parent 26ec2c4 commit 28941d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/iopcore/cdvdman/device-bdm.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ void bdm_connect_bd(struct block_device *bd)
{
DPRINTF("connecting device %s%dp%d\n", bd->name, bd->devNr, bd->parNr);

// lock when performing additional device mount operations
if (g_bd != NULL)
WaitSema(bdm_io_sema);

Expand All @@ -37,7 +38,7 @@ void bdm_connect_bd(struct block_device *bd)
SignalSema(bdm_io_sema);
}

if (g_bd != NULL)
if (g_bd != NULL && g_bd != bd)
SignalSema(bdm_io_sema);
}

Expand Down

0 comments on commit 28941d5

Please sign in to comment.