FreeBSD Bugzilla – Attachment 177275 Details for
Bug 205903
x11/nvidia-driver-340: Repeating crash with nvidia-driver: "fault on nofault entry"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
NEWPATCH: Supposed to be cleaner. UNTESTED!
patch-bug-195097-NEW_UNTESTED (text/plain), 869 bytes, created by
Anonymized Account
on 2016-11-22 12:10:25 UTC
(
hide
)
Description:
NEWPATCH: Supposed to be cleaner. UNTESTED!
Filename:
MIME Type:
Creator:
Anonymized Account
Created:
2016-11-22 12:10:25 UTC
Size:
869 bytes
patch
obsolete
>--- nvidia_subr.c.orig 2015-11-09 07:14:41.000000000 +0100 >+++ nvidia_subr.c 2016-07-02 12:46:41.264155000 +0200 >@@ -489,7 +489,9 @@ > nv_stack_t *sp; > > sp = sc->api_sp; >- rm_free_unused_clients(sp, nv, filep); >+ /* Prevent rm_free_unused_clients from being called with null pointer. */ >+ if (sp != NULL) >+ rm_free_unused_clients(sp, nv, filep); > > if (--sc->refcnt == 0) { > NV_UMA_ZONE_FREE_STACK(sc->api_sp); >@@ -594,9 +596,12 @@ > > sc = nv->os_state; > sp = sc->api_sp; >+ /* If nvidia_open_dev failed and we're called from nvidia_dev_dtor, we >+ * already released api_sp. */ > > NV_PCI_CHECK_CONFIG_SPACE(sp, nv, TRUE, TRUE, TRUE); >- rm_free_unused_clients(sp, nv, filep); >+ if (sp != NULL) >+ rm_free_unused_clients(sp, nv, filep); > > if (--sc->refcnt == 0) { > if (sc->UD_object != NULL)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 205903
:
165080
|
165081
|
170497
|
170498
|
170499
|
170501
|
177275
|
185350