Fix a crash that has manifest itself while running X after the 4MB

page upgrades.
This commit is contained in:
John Dyson 1997-07-21 01:21:25 +00:00
parent 4cb2abf6d8
commit 322d7a880b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=27566
2 changed files with 4 additions and 4 deletions

View File

@ -39,7 +39,7 @@
* SUCH DAMAGE.
*
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
* $Id: pmap.c,v 1.149 1997/07/17 19:45:01 dyson Exp $
* $Id: pmap.c,v 1.150 1997/07/20 08:37:22 bde Exp $
*/
/*
@ -3234,7 +3234,7 @@ pmap_activate(struct proc *p)
vm_offset_t
pmap_addr_hint(vm_object_t obj, vm_offset_t addr, vm_size_t size) {
if ((size < NBPDR) || (obj->type != OBJT_DEVICE)) {
if ((obj == NULL) || (size < NBPDR) || (obj->type != OBJT_DEVICE)) {
return addr;
}

View File

@ -39,7 +39,7 @@
* SUCH DAMAGE.
*
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
* $Id: pmap.c,v 1.149 1997/07/17 19:45:01 dyson Exp $
* $Id: pmap.c,v 1.150 1997/07/20 08:37:22 bde Exp $
*/
/*
@ -3234,7 +3234,7 @@ pmap_activate(struct proc *p)
vm_offset_t
pmap_addr_hint(vm_object_t obj, vm_offset_t addr, vm_size_t size) {
if ((size < NBPDR) || (obj->type != OBJT_DEVICE)) {
if ((obj == NULL) || (size < NBPDR) || (obj->type != OBJT_DEVICE)) {
return addr;
}