summaryrefslogtreecommitdiff
path: root/sys-kernel/nvidia-drivers-dkms
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-07-07 15:44:28 +0100
committerV3n3RiX <venerix@redcorelinux.org>2019-07-07 15:44:28 +0100
commite01d130b1ca8eacae2a2d1f54b22857649afdc98 (patch)
tree8ec812c53e9ef7bb3cd4deee0fca775401fecc20 /sys-kernel/nvidia-drivers-dkms
parenta85038eed25ba9627a30fd11260c54d94539e9b5 (diff)
sys-kernel/nvidia-drivers-dkms : add a patch from ArchLinux to 430.26 driver (see https://bugs.archlinux.org/task/62142)
Diffstat (limited to 'sys-kernel/nvidia-drivers-dkms')
-rw-r--r--sys-kernel/nvidia-drivers-dkms/files/fs62142.patch13
-rw-r--r--sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-430.26-r1.ebuild (renamed from sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-430.26.ebuild)3
2 files changed, 15 insertions, 1 deletions
diff --git a/sys-kernel/nvidia-drivers-dkms/files/fs62142.patch b/sys-kernel/nvidia-drivers-dkms/files/fs62142.patch
new file mode 100644
index 00000000..04806bd8
--- /dev/null
+++ b/sys-kernel/nvidia-drivers-dkms/files/fs62142.patch
@@ -0,0 +1,13 @@
+diff --git a/kernel/nvidia/nv-dma.c b/kernel/nvidia/nv-dma.c
+index 73cdeed..e691014 100644
+--- a/kernel/nvidia/nv-dma.c
++++ b/kernel/nvidia/nv-dma.c
+@@ -606,7 +606,7 @@ static NvBool nv_dma_is_map_resource_implemented
+ #if defined(NV_DMA_MAP_RESOURCE_PRESENT)
+ const struct dma_map_ops *ops = get_dma_ops(&nvl->dev->dev);
+
+- return (ops->map_resource != NULL);
++ return (ops && ops->map_resource);
+ #else
+ return NV_FALSE;
+ #endif
diff --git a/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-430.26.ebuild b/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-430.26-r1.ebuild
index 46ddb186..9130d290 100644
--- a/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-430.26.ebuild
+++ b/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-430.26-r1.ebuild
@@ -21,7 +21,8 @@ IUSE=""
DEPEND="sys-kernel/dkms"
RDEPEND="${DEPEND}"
-PATCHES=(
+PATCHES=(
+ "${FILESDIR}"/fs62142.patch
"${FILESDIR}"/"${P}"-conf.patch
)