projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17c9d12
)
migration: migrate_vmas should check "vma"
author
Daisuke Nishimura
<
[email protected]
>
Wed, 11 Feb 2009 21:04:18 +0000
(13:04 -0800)
committer
Linus Torvalds
<
[email protected]
>
Wed, 11 Feb 2009 22:25:34 +0000
(14:25 -0800)
migrate_vmas() should check "vma" not "vma->vm_next" for for-loop condition.
Signed-off-by: Daisuke Nishimura <
[email protected]
>
Cc: Christoph Lameter <
[email protected]
>
Cc: Johannes Weiner <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/migrate.c
patch
|
blob
|
history
diff --git
a/mm/migrate.c
b/mm/migrate.c
index 2bb4e1d6352046e9030a789a9b78c385cd104c5b..a9eff3f092f622a451753a1dc155f5b7fbdd7ab6 100644
(file)
--- a/
mm/migrate.c
+++ b/
mm/migrate.c
@@
-1129,7
+1129,7
@@
int migrate_vmas(struct mm_struct *mm, const nodemask_t *to,
struct vm_area_struct *vma;
int err = 0;
- for
(vma = mm->mmap; vma->vm_next
&& !err; vma = vma->vm_next) {
+ for
(vma = mm->mmap; vma
&& !err; vma = vma->vm_next) {
if (vma->vm_ops && vma->vm_ops->migrate) {
err = vma->vm_ops->migrate(vma, to, from, flags);
if (err)