From 1654bc5752740e54a5e6cfd18021a9f66d7b7df2 Mon Sep 17 00:00:00 2001
From: Dave Airlie <airlied@linux.ie>
Date: Wed, 9 Jul 2003 23:21:15 +0000
Subject: DA: fix for bug 484 in Bugzilla, originally from me, reworked by
 David     Dawes to avoid backword incompatibilities...

---
 linux/drm_agpsupport.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'linux')

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;
-- 
cgit v1.2.3