DA: fix for bug 484 in Bugzilla, originally from me, reworked by David

Dawes to avoid backword incompatibilities...
main
Dave Airlie 2003-07-09 23:21:15 +00:00
parent f4188a7518
commit 1654bc5752
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;