summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2003-07-09 23:21:15 +0000
committerDave Airlie <airlied@linux.ie>2003-07-09 23:21:15 +0000
commit1654bc5752740e54a5e6cfd18021a9f66d7b7df2 (patch)
treed3a5d96caea08c004f4b095e253366a509732692
parentf4188a751829926f5901d18a0d95774c8cdecbf8 (diff)
DA: fix for bug 484 in Bugzilla, originally from me, reworked by David
Dawes to avoid backword incompatibilities...
-rw-r--r--linux-core/drm_agpsupport.c2
-rw-r--r--linux/drm_agpsupport.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/linux-core/drm_agpsupport.c b/linux-core/drm_agpsupport.c
index 81850593..bab7b45c 100644
--- a/linux-core/drm_agpsupport.c
+++ b/linux-core/drm_agpsupport.c
@@ -217,7 +217,7 @@ int DRM(agp_alloc)(struct inode *inode, struct file *filp,
return -ENOMEM;
}
- entry->handle = (unsigned long)memory->key;
+ entry->handle = (unsigned long)memory->key + 1;
entry->memory = memory;
entry->bound = 0;
entry->pages = pages;
diff --git a/linux/drm_agpsupport.h b/linux/drm_agpsupport.h
index 81850593..bab7b45c 100644
--- a/linux/drm_agpsupport.h
+++ b/linux/drm_agpsupport.h
@@ -217,7 +217,7 @@ int DRM(agp_alloc)(struct inode *inode, struct file *filp,
return -ENOMEM;
}
- entry->handle = (unsigned long)memory->key;
+ entry->handle = (unsigned long)memory->key + 1;
entry->memory = memory;
entry->bound = 0;
entry->pages = pages;