Commit 2f20d8da authored by Linus Torvalds's avatar Linus Torvalds

Merge from DRI CVS tree: avoid zero DRI "handles".

parent 8f3fb748
...@@ -216,7 +216,7 @@ int DRM(agp_alloc)(struct inode *inode, struct file *filp, ...@@ -216,7 +216,7 @@ int DRM(agp_alloc)(struct inode *inode, struct file *filp,
return -ENOMEM; return -ENOMEM;
} }
entry->handle = (unsigned long)memory->key; entry->handle = (unsigned long)memory->key + 1;
entry->memory = memory; entry->memory = memory;
entry->bound = 0; entry->bound = 0;
entry->pages = pages; entry->pages = pages;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment