summaryrefslogtreecommitdiff
path: root/sys-kernel/nvidia-drivers-dkms/files/fs62142.patch
blob: 04806bd8d1540066f134a6bd7b84176670c157bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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