projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mm/memunmap: don't access uninitialized memmap in memunmap_pages()
[linux-2.6-block.git]
/
fs
/
namespace.c
diff --git
a/fs/namespace.c
b/fs/namespace.c
index b75d458f817de6bea3d15130351940847e0c5145..fe0e9e1410fee30b05b725582ae460f66f997351 100644
(file)
--- a/
fs/namespace.c
+++ b/
fs/namespace.c
@@
-3026,7
+3026,7
@@
void *copy_mount_options(const void __user * data)
* the remainder of the page.
*/
/* copy_from_user cannot cross TASK_SIZE ! */
- size = TASK_SIZE - (unsigned long)
data
;
+ size = TASK_SIZE - (unsigned long)
untagged_addr(data)
;
if (size > PAGE_SIZE)
size = PAGE_SIZE;