Skip to content

Commit e9b39d8

Browse files
committed
Fix cuda_init returning NULL with no error set.
1 parent 9b0d328 commit e9b39d8

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/gpuarray_buffer_cuda.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,8 +399,9 @@ static gpucontext *cuda_init(int ord, int flags, int *ret) {
399399
int r;
400400

401401
r = setup_lib();
402-
if (r != GA_NO_ERROR)
403-
return NULL;
402+
if (r != GA_NO_ERROR) {
403+
FAIL(NULL, r);
404+
}
404405

405406
if (ord == -1) {
406407
int i, c;

0 commit comments

Comments
 (0)