vm: fix potential null deref
This commit is contained in:
parent
0ab81d2491
commit
aefc6db005
1 changed files with 1 additions and 1 deletions
|
@ -830,7 +830,7 @@ struct phys_region **physr;
|
||||||
ph = offset - r->vaddr;
|
ph = offset - r->vaddr;
|
||||||
if(physr) {
|
if(physr) {
|
||||||
*physr = physr_search(r->phys, ph, AVL_EQUAL);
|
*physr = physr_search(r->phys, ph, AVL_EQUAL);
|
||||||
assert((*physr)->offset == ph);
|
if(*physr) assert((*physr)->offset == ph);
|
||||||
}
|
}
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue