From: Ben Gras Date: Wed, 24 Oct 2012 17:47:47 +0000 (+0200) Subject: vm: fix potential null deref X-Git-Tag: v3.2.1~254 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zlib_tech.html?a=commitdiff_plain;h=aefc6db005065082e6dcd170d457974d2df67027;p=minix.git vm: fix potential null deref --- diff --git a/servers/vm/region.c b/servers/vm/region.c index ae3e32adf..cb569f41f 100644 --- a/servers/vm/region.c +++ b/servers/vm/region.c @@ -830,7 +830,7 @@ struct phys_region **physr; ph = offset - r->vaddr; if(physr) { *physr = physr_search(r->phys, ph, AVL_EQUAL); - assert((*physr)->offset == ph); + if(*physr) assert((*physr)->offset == ph); } return r; }