diff options
author | Daniel De Graaf <dgdegra@tycho.nsa.gov> | 2011-02-23 08:11:36 -0500 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2011-02-23 10:10:34 -0500 |
commit | f4ee4af447b67135de7eb8a6615811c13ce938e2 (patch) | |
tree | eb91f7ba09659e4ab183fa4259cb33d2b7eb8d87 /drivers/xen | |
parent | 77c35acb7c81cd94c6b30a3bef488dd2d8145131 (diff) |
xen-gntdev: Add cast to pointer
Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/xen')
-rw-r--r-- | drivers/xen/gntdev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/xen/gntdev.c b/drivers/xen/gntdev.c index cdc28dc8b5d9..d43ff3072c99 100644 --- a/drivers/xen/gntdev.c +++ b/drivers/xen/gntdev.c | |||
@@ -298,8 +298,8 @@ static int __unmap_grant_pages(struct grant_map *map, int offset, int pages) | |||
298 | if (map->notify.flags & UNMAP_NOTIFY_CLEAR_BYTE) { | 298 | if (map->notify.flags & UNMAP_NOTIFY_CLEAR_BYTE) { |
299 | int pgno = (map->notify.addr >> PAGE_SHIFT); | 299 | int pgno = (map->notify.addr >> PAGE_SHIFT); |
300 | if (pgno >= offset && pgno < offset + pages && use_ptemod) { | 300 | if (pgno >= offset && pgno < offset + pages && use_ptemod) { |
301 | void __user *tmp; | 301 | void __user *tmp = (void __user *) |
302 | tmp = map->vma->vm_start + map->notify.addr; | 302 | map->vma->vm_start + map->notify.addr; |
303 | err = copy_to_user(tmp, &err, 1); | 303 | err = copy_to_user(tmp, &err, 1); |
304 | if (err) | 304 | if (err) |
305 | return err; | 305 | return err; |