Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
[Fuel-plugin] Install kernel in post-deployment.
[kvmfornfv.git]
/
kernel
/
mm
/
util.c
diff --git
a/kernel/mm/util.c
b/kernel/mm/util.c
index
68ff8a5
..
9af1c12
100644
(file)
--- a/
kernel/mm/util.c
+++ b/
kernel/mm/util.c
@@
-309,7
+309,7
@@
unsigned long vm_mmap(struct file *file, unsigned long addr,
{
if (unlikely(offset + PAGE_ALIGN(len) < offset))
return -EINVAL;
- if (unlikely(offset
& ~PAGE_MASK
))
+ if (unlikely(offset
_in_page(offset)
))
return -EINVAL;
return vm_mmap_pgoff(file, addr, len, prot, flag, offset >> PAGE_SHIFT);