Lines 489-494
Link Here
|
489 |
nv_stack_t *sp; |
489 |
nv_stack_t *sp; |
490 |
|
490 |
|
491 |
sp = sc->api_sp; |
491 |
sp = sc->api_sp; |
|
|
492 |
/* If nvidia_open_dev failed and we're called from nvidia_dev_dtor, we |
493 |
* already released api_sp. */ |
494 |
if (sp == NULL) |
495 |
return 0; |
492 |
rm_free_unused_clients(sp, nv, filep); |
496 |
rm_free_unused_clients(sp, nv, filep); |
493 |
|
497 |
|
494 |
if (--sc->refcnt == 0) { |
498 |
if (--sc->refcnt == 0) { |
Lines 594-599
Link Here
|
594 |
|
598 |
|
595 |
sc = nv->os_state; |
599 |
sc = nv->os_state; |
596 |
sp = sc->api_sp; |
600 |
sp = sc->api_sp; |
|
|
601 |
/* If nvidia_open_dev failed and we're called from nvidia_dev_dtor, we |
602 |
* already released api_sp. */ |
603 |
if (sp == NULL) |
604 |
return 0; |
597 |
|
605 |
|
598 |
NV_PCI_CHECK_CONFIG_SPACE(sp, nv, TRUE, TRUE, TRUE); |
606 |
NV_PCI_CHECK_CONFIG_SPACE(sp, nv, TRUE, TRUE, TRUE); |
599 |
rm_free_unused_clients(sp, nv, filep); |
607 |
rm_free_unused_clients(sp, nv, filep); |