Skip to content

Commit

Permalink
nvnetdrv: KeReleaseSemaphore arg should be BOOLEAN
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryzee119 committed Dec 29, 2024
1 parent 1b0036f commit 09fecf4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/net/nvnetdrv/nvnetdrv.c
Original file line number Diff line number Diff line change
Expand Up @@ -659,16 +659,16 @@ void nvnetdrv_stop (void)
}

// Free all TX descriptors g_txRingFreeCount so nvnetdrv_acquire_tx_descriptors will return.
KeReleaseSemaphore(&g_txRingFreeCount, IO_NETWORK_INCREMENT, g_txPendingCount, NULL);
KeReleaseSemaphore(&g_txRingFreeCount, IO_NETWORK_INCREMENT, g_txPendingCount, FALSE);

// End rxrequeue_thread
nvnetdrv_rx_push(g_rxRingUserBuffers); // Just push a buffer into stack so we dont get stuck waiting for one
KeReleaseSemaphore(&g_rxRingFreeDescriptors, IO_NETWORK_INCREMENT, 1, NULL);
KeReleaseSemaphore(&g_rxRingFreeDescriptors, IO_NETWORK_INCREMENT, 1, FALSE);
NtWaitForSingleObject(g_rxRingRequeueThread, FALSE, NULL);
NtClose(g_rxRingRequeueThread);

// End rxcallback_thread
KeReleaseSemaphore(&g_rxPendingCount, IO_NETWORK_INCREMENT, 1, NULL);
KeReleaseSemaphore(&g_rxPendingCount, IO_NETWORK_INCREMENT, 1, FALSE);
NtWaitForSingleObject(g_rxCallbackThread, FALSE, NULL);
NtClose(g_rxCallbackThread);

Expand Down

0 comments on commit 09fecf4

Please sign in to comment.