PERFORCE change 163591 for review
Marko Zec
zec at FreeBSD.org
Fri Jun 5 17:49:35 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=163591
Change 163591 by zec at zec_tpx32 on 2009/06/05 17:49:07
vi_if_move() may be called with vi_req set to NULL, if called
from vi_destroy(), hence check whether vi_req is non-NULL before
attempting to dereference it.
Affected files ...
.. //depot/projects/vimage-commit2/src/sys/kern/kern_vimage.c#53 edit
Differences ...
==== //depot/projects/vimage-commit2/src/sys/kern/kern_vimage.c#53 (text+ko) ====
@@ -122,7 +122,7 @@
struct vnet *new_vnet = NULL;
/* Check for API / ABI version mismatch. */
- if (vi_req->vi_api_cookie != VI_API_COOKIE)
+ if (vi_req != NULL && vi_req->vi_api_cookie != VI_API_COOKIE)
return (EDOOFUS);
/* Find the target vnet. */
More information about the p4-projects
mailing list