summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/savage
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-05-17 10:09:44 +0300
committerDave Airlie <airlied@redhat.com>2012-05-17 11:42:27 +0100
commit10f5ab04056207b900e903f1e4b50b8e3867b67e (patch)
treea3b4e005a5b724927e6e9b6669192e79c661cdf6 /drivers/gpu/drm/savage
parent0333592ff9e936c6e5ae143e7418468a3198b54d (diff)
downloadop-kernel-dev-10f5ab04056207b900e903f1e4b50b8e3867b67e.zip
op-kernel-dev-10f5ab04056207b900e903f1e4b50b8e3867b67e.tar.gz
drm: checking the wrong variable in savage_do_init_bci()
drm_core_ioremap() initializes ->handle. We already know "dev->agp_buffer_map" is a valid pointer. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/savage')
-rw-r--r--drivers/gpu/drm/savage/savage_bci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/savage/savage_bci.c b/drivers/gpu/drm/savage/savage_bci.c
index cb1ee4e..6eb507a 100644
--- a/drivers/gpu/drm/savage/savage_bci.c
+++ b/drivers/gpu/drm/savage/savage_bci.c
@@ -735,7 +735,7 @@ static int savage_do_init_bci(struct drm_device * dev, drm_savage_init_t * init)
return -EINVAL;
}
drm_core_ioremap(dev->agp_buffer_map, dev);
- if (!dev->agp_buffer_map) {
+ if (!dev->agp_buffer_map->handle) {
DRM_ERROR("failed to ioremap DMA buffer region!\n");
savage_do_cleanup_bci(dev);
return -ENOMEM;
OpenPOWER on IntegriCloud