View | Details | Raw Unified | Return to bug 228709
Collapse All | Expand All

(-)x11/nvidia-driver/Makefile (-2 / +4 lines)
Lines 66-77 Link Here
66
.if ${NVVERSION} < 355.006
66
.if ${NVVERSION} < 355.006
67
EXTRA_PATCHES=	${FILESDIR}/extra-patch-src-Makefile \
67
EXTRA_PATCHES=	${FILESDIR}/extra-patch-src-Makefile \
68
		${FILESDIR}/extra-patch-src-nv-freebsd.h \
68
		${FILESDIR}/extra-patch-src-nv-freebsd.h \
69
		${FILESDIR}/extra-patch-src-nv-misc.h
69
		${FILESDIR}/extra-patch-src-nv-misc.h \
70
		${FILESDIR}/extra-patch-src_nvidia__subr.c
70
NVSRC=		.
71
NVSRC=		.
71
.else
72
.else
72
EXTRA_PATCHES=	${FILESDIR}/extra-patch-src_nvidia_Makefile \
73
EXTRA_PATCHES=	${FILESDIR}/extra-patch-src_nvidia_Makefile \
73
		${FILESDIR}/extra-patch-src_nvidia_nv-freebsd.h \
74
		${FILESDIR}/extra-patch-src_nvidia_nv-freebsd.h \
74
		${FILESDIR}/extra-patch-src_nvidia_nv-misc.h
75
		${FILESDIR}/extra-patch-src_nvidia_nv-misc.h \
76
		${FILESDIR}/extra-patch-src_nvidia_nvidia__subr.c
75
NVSRC=		nvidia
77
NVSRC=		nvidia
76
.endif
78
.endif
77
.if ${NVVERSION} >= 358.009
79
.if ${NVVERSION} >= 358.009
(-)x11/nvidia-driver/files/extra-patch-src_nvidia__subr.c (+11 lines)
Line 0 Link Here
1
--- src/nvidia_subr.c.orig	2018-06-04 04:06:10 UTC
2
+++ src/nvidia_subr.c
3
@@ -382,7 +382,7 @@ int nvidia_get_card_info(void *args, int size)
4
     }
5
 
6
     ci = args;
7
-    memset(ci, 0, sizeof(ci));
8
+    memset(ci, 0, sizeof(*ci));
9
 
10
     for (i = 0; i < NV_MAX_DEVICES; i++) {
11
         sc = devclass_get_softc(nvidia_devclass, i);
(-)x11/nvidia-driver/files/extra-patch-src_nvidia_nvidia__subr.c (+11 lines)
Line 0 Link Here
1
--- src/nvidia/nvidia_subr.c.orig	2018-06-04 03:59:57 UTC
2
+++ src/nvidia/nvidia_subr.c
3
@@ -364,7 +364,7 @@ int nvidia_get_card_info(void *args, int size)
4
     }
5
 
6
     ci = args;
7
-    memset(ci, 0, sizeof(ci));
8
+    memset(ci, 0, sizeof(*ci));
9
 
10
     for (i = 0; i < NV_MAX_DEVICES; i++) {
11
         sc = devclass_get_softc(nvidia_devclass, i);

Return to bug 228709