Created
December 4, 2024 14:34
-
-
Save gulafaran/58dbaaa052640d9f0ed554141d2e9e95 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/nvidia/src/kernel/rmapi/event_notification.c b/src/nvidia/src/kernel/rmapi/event_notification.c | |
index cf78eadd..d6937cac 100644 | |
--- a/src/nvidia/src/kernel/rmapi/event_notification.c | |
+++ b/src/nvidia/src/kernel/rmapi/event_notification.c | |
@@ -286,11 +286,11 @@ static NV_STATUS _gpuEngineEventNotificationListNotify | |
portSyncSpinlockAcquire(pEventNotificationList->pSpinlock); | |
{ | |
// We don't expect this to be called multiple times in parallel | |
- NV_ASSERT_OR_ELSE(pEventNotificationList->pendingEventNotifyCount == 0, | |
+ if (pEventNotificationList->pendingEventNotifyCount != 0) | |
{ | |
portSyncSpinlockRelease(pEventNotificationList->pSpinlock); | |
return NV_ERR_INVALID_STATE; | |
- }); | |
+ } | |
EngineEventNotificationListIter it = | |
listIterAll(&pEventNotificationList->eventNotificationList); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment