aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/core/subdev/fb/nvc0.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2014-08-05 22:03:49 +1000
committerBen Skeggs <bskeggs@redhat.com>2014-08-10 05:12:52 +1000
commit838f6fe7e470b7cd322b7c3e5ac8c0e09e580194 (patch)
tree665b38f4ff69c9fce2db5a0eadc8767bc490ec87 /drivers/gpu/drm/nouveau/core/subdev/fb/nvc0.c
parentdrm/nouveau: Dis/Enable vblank irqs during suspend/resume. (diff)
downloadlinux-dev-838f6fe7e470b7cd322b7c3e5ac8c0e09e580194.tar.xz
linux-dev-838f6fe7e470b7cd322b7c3e5ac8c0e09e580194.zip
drm/nv50-/fb: use dma_mapping_error() to check dma_map_page() result
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to '')
-rw-r--r--drivers/gpu/drm/nouveau/core/subdev/fb/nvc0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/core/subdev/fb/nvc0.c b/drivers/gpu/drm/nouveau/core/subdev/fb/nvc0.c
index 9f5f3ac8d4c6..b19a2b3c1081 100644
--- a/drivers/gpu/drm/nouveau/core/subdev/fb/nvc0.c
+++ b/drivers/gpu/drm/nouveau/core/subdev/fb/nvc0.c
@@ -97,7 +97,7 @@ nvc0_fb_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
priv->r100c10 = dma_map_page(nv_device_base(device),
priv->r100c10_page, 0, PAGE_SIZE,
DMA_BIDIRECTIONAL);
- if (!priv->r100c10)
+ if (dma_mapping_error(nv_device_base(device), priv->r100c10))
return -EFAULT;
}