Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 12148
b: refs/heads/master
c: 67e1a01
h: refs/heads/master
v: v3
  • Loading branch information
Dave Airlie authored and Dave Airlie committed Oct 24, 2005
1 parent 2d7bc2c commit ab9d6d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5fb4dc9bf5e3af1ae91be97108bc3b1233252ddf
refs/heads/master: 67e1a014fbc0e472ccc55766a63640a767ede3bf
4 changes: 3 additions & 1 deletion trunk/drivers/char/drm/drm_bufs.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,9 @@ int drm_addmap_ioctl(struct inode *inode, struct file *filp,

if (copy_to_user(argp, maplist->map, sizeof(drm_map_t)))
return -EFAULT;
if (put_user((void *)maplist->user_token, &argp->handle))

/* avoid a warning on 64-bit, this casting isn't very nice, but the API is set so too late */
if (put_user((void *)(unsigned long)maplist->user_token, &argp->handle))
return -EFAULT;
return 0;
}
Expand Down

0 comments on commit ab9d6d4

Please sign in to comment.