diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2009-11-22 19:46:15 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2009-11-22 19:46:15 +0100 |
commit | 567b9088f3d2ce24a5ab283b9a6828595a914895 (patch) | |
tree | c485436ed3996a93b8df589c0937c83a69761b19 | |
parent | e91fc76e62134f39370cee819508c288d5b43a66 (diff) |
Fix db_search_null loop
* i386/i386/db_interface.c (db_search_null): Do not decrease
vaddr twice.
-rw-r--r-- | i386/i386/db_interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/i386/i386/db_interface.c b/i386/i386/db_interface.c index 252ad7e..be0c893 100644 --- a/i386/i386/db_interface.c +++ b/i386/i386/db_interface.c @@ -501,7 +501,7 @@ db_search_null( register unsigned *kaddr; kaddr = (unsigned *)*skaddr; - for (vaddr = *svaddr; vaddr > evaddr; vaddr -= sizeof(unsigned)) { + for (vaddr = *svaddr; vaddr > evaddr; ) { if (vaddr % INTEL_PGBYTES == 0) { vaddr -= sizeof(unsigned); if (db_user_to_kernel_address(task, vaddr, skaddr, 0) < 0) |