projects
/
profile
/
common
/
kernel-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3428838
)
page-types: unsigned cannot be less than 0 in add_page()
author
Roel Kluin
<roel.kluin@gmail.com>
Tue, 15 Dec 2009 01:57:49 +0000
(17:57 -0800)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Tue, 15 Dec 2009 16:53:11 +0000
(08:53 -0800)
If not signed, testing of the read() return value in this function
will not work.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Cc: Wu Fengguang <fengguang.wu@intel.com>
Cc: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/vm/page-types.c
patch
|
blob
|
history
diff --git
a/Documentation/vm/page-types.c
b/Documentation/vm/page-types.c
index
59a4614
..
2279b61
100644
(file)
--- a/
Documentation/vm/page-types.c
+++ b/
Documentation/vm/page-types.c
@@
-560,7
+560,7
@@
static void walk_pfn(unsigned long voffset,
{
uint64_t buf[KPAGEFLAGS_BATCH];
unsigned long batch;
-
unsigned
long pages;
+ long pages;
unsigned long i;
while (count) {