diff options
| author | Alfred Perlstein <alfred@FreeBSD.org> | 2000-11-07 18:31:16 +0000 |
|---|---|---|
| committer | Alfred Perlstein <alfred@FreeBSD.org> | 2000-11-07 18:31:16 +0000 |
| commit | b5d335ad6d3e58f1db644e3a61e96f8798aa564d (patch) | |
| tree | a4a09b6769fbbc6ee6e21a8d040a39a3ca6c2cdf | |
| parent | aac152216ef1630fe28389d391e472a2f2a9adbc (diff) | |
Notes
| -rw-r--r-- | sys/amd64/amd64/pmap.c | 5 | ||||
| -rw-r--r-- | sys/i386/i386/pmap.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index 3d8bbb217d14..4aefc1c7e2cd 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -2337,8 +2337,11 @@ retry: return; } - if (psize + pindex > object->size) + if (psize + pindex > object->size) { + if (object->size < pindex) + return; psize = object->size - pindex; + } mpte = NULL; /* diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c index 3d8bbb217d14..4aefc1c7e2cd 100644 --- a/sys/i386/i386/pmap.c +++ b/sys/i386/i386/pmap.c @@ -2337,8 +2337,11 @@ retry: return; } - if (psize + pindex > object->size) + if (psize + pindex > object->size) { + if (object->size < pindex) + return; psize = object->size - pindex; + } mpte = NULL; /* |
