git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
media: v4l2-compat-ioctl32: fix missing reserved field copy in put_v4l2_create32
[pandora-kernel.git]
/
drivers
/
lguest
/
core.c
diff --git
a/drivers/lguest/core.c
b/drivers/lguest/core.c
index
b5fdcb7
..
34842e5
100644
(file)
--- a/
drivers/lguest/core.c
+++ b/
drivers/lguest/core.c
@@
-171,7
+171,7
@@
static void unmap_switcher(void)
bool lguest_address_ok(const struct lguest *lg,
unsigned long addr, unsigned long len)
{
- return
(addr+len) / PAGE_SIZE < lg->pfn_limit
&& (addr+len >= addr);
+ return
addr+len <= lg->pfn_limit * PAGE_SIZE
&& (addr+len >= addr);
}
/*