From 09fecf4e41a6bcf41b5ca0720c349dad256dd0bf Mon Sep 17 00:00:00 2001 From: Ryan Wendland Date: Mon, 30 Dec 2024 10:00:45 +1030 Subject: [PATCH] nvnetdrv: KeReleaseSemaphore arg should be BOOLEAN --- lib/net/nvnetdrv/nvnetdrv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/net/nvnetdrv/nvnetdrv.c b/lib/net/nvnetdrv/nvnetdrv.c index b92e098d9..dc21f8510 100644 --- a/lib/net/nvnetdrv/nvnetdrv.c +++ b/lib/net/nvnetdrv/nvnetdrv.c @@ -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);