diff options
author | Maxime Henrion <mux@FreeBSD.org> | 2003-03-24 13:49:54 +0000 |
---|---|---|
committer | Maxime Henrion <mux@FreeBSD.org> | 2003-03-24 13:49:54 +0000 |
commit | 57a8c90d83f642bdcd2b47a5a982f7b89282f517 (patch) | |
tree | ea46f639f4fc2216247dd5e4c6998361f8b5725e /x11/nvidia-driver/files | |
parent | 67802c159a639d58e99feeddf128e92c8d6c20ba (diff) | |
download | ports-57a8c90d83f642bdcd2b47a5a982f7b89282f517.tar.gz ports-57a8c90d83f642bdcd2b47a5a982f7b89282f517.zip |
Notes
Diffstat (limited to 'x11/nvidia-driver/files')
-rw-r--r-- | x11/nvidia-driver/files/patch-nvidia_subr.c | 35 |
1 files changed, 34 insertions, 1 deletions
diff --git a/x11/nvidia-driver/files/patch-nvidia_subr.c b/x11/nvidia-driver/files/patch-nvidia_subr.c index edd6fa4da0e6..4a4b40234a82 100644 --- a/x11/nvidia-driver/files/patch-nvidia_subr.c +++ b/x11/nvidia-driver/files/patch-nvidia_subr.c @@ -1,5 +1,29 @@ --- src/nvidia_subr.c.orig Wed Oct 30 15:30:58 2002 -+++ src/nvidia_subr.c Thu Mar 6 01:25:20 2003 ++++ src/nvidia_subr.c Fri Mar 14 20:47:44 2003 +@@ -130,7 +130,7 @@ + sc = device_get_softc(dev); + sc->dev = dev; + +- sc->nv_state = malloc(sizeof(nv_state_t), M_DEVBUF, M_ZERO); ++ sc->nv_state = malloc(sizeof(nv_state_t), M_DEVBUF, M_WAITOK | M_ZERO); + if (sc->nv_state == NULL) { + error = ENOMEM; + goto fail; +@@ -901,12 +901,12 @@ + void *vm; + u_int32_t i, size = count * PAGE_SIZE; + +- at = malloc(sizeof(nv_alloc_t), M_NVIDIA, M_ZERO); ++ at = malloc(sizeof(nv_alloc_t), M_NVIDIA, M_WAITOK | M_ZERO); + if (!at) { + return -ENOMEM; + } + +- vm = malloc(size, M_NVIDIA, M_ZERO); ++ vm = malloc(size, M_NVIDIA, M_WAITOK | M_ZERO); + if (!vm) { + /* + * This error condition is not unlikely to occur. We allocate our @@ -925,7 +925,9 @@ * prevent random crashes. */ @@ -26,6 +50,15 @@ free(at, M_NVIDIA); free(address, M_NVIDIA); +@@ -993,7 +997,7 @@ + vm_page_t m; + vm_object_t object; + +- at = malloc(sizeof(nv_alloc_t), M_NVIDIA, M_ZERO); ++ at = malloc(sizeof(nv_alloc_t), M_NVIDIA, M_WAITOK | M_ZERO); + if (!at) { + return -ENOMEM; + } @@ -1007,13 +1011,19 @@ * will be allocated. */ |