git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
This stack check implementation leverages the compiler's profiling (gcc -p)
[linux-2.6.git]
/
drivers
/
block
/
umem.c
diff --git
a/drivers/block/umem.c
b/drivers/block/umem.c
index
f7488ae
..
2b126d8
100644
(file)
--- a/
drivers/block/umem.c
+++ b/
drivers/block/umem.c
@@
-833,7
+833,7
@@
static int mm_ioctl(struct inode *i, struct file *f, unsigned int cmd, unsigned
geo.start = get_start_sect(i->i_bdev);
geo.cylinders = size / (geo.heads * geo.sectors);
- if (copy_to_user((void *) arg, &geo, sizeof(geo)))
+ if (copy_to_user((void
__user
*) arg, &geo, sizeof(geo)))
return -EFAULT;
return 0;
}