We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40df6b0 commit ea8cd30Copy full SHA for ea8cd30
driverapi/src/cmdqueue.cpp
@@ -241,7 +241,7 @@ libreCudaStatus_t NvCommandQueue::releaseSignal(NvSignal *signal) {
241
NvU32 signalIdx = signal - signalPool;
242
243
// ensure pointer was within signal pool and thus valid
244
- if (signalIdx > MAX_SIGNAL_POOL_SIZE) {
+ if (signalIdx >= MAX_SIGNAL_POOL_SIZE) {
245
LIBRECUDA_FAIL(LIBRECUDA_ERROR_INVALID_VALUE);
246
}
247
0 commit comments