[vbox-dev] [PATCH] fix a uninitialize fieldin pdm

Howard Su howard0su at gmail.com
Sat Jun 11 07:05:30 GMT 2011


--- a/VirtualBox_OSE/src/VBox/VMM/VMMR3/PDMDriver.cpp
+++ b/VirtualBox_OSE/src/VBox/VMM/VMMR3/PDMDriver.cpp
@@ -88,6 +88,7 @@ VMMR3DECL(int) PDMR3RegisterDrivers(PVM pVM,
FNPDMVBOXDRIVERSREGISTER pfnCallbac
     RegCB.Core.u32Version   = PDM_DRVREG_CB_VERSION;
     RegCB.Core.pfnRegister  = pdmR3DrvRegister;
     RegCB.pVM               = pVM;
+    RegCB.pCfgNode          = NULL;
     int rc = pfnCallback(&RegCB.Core, VBOX_VERSION);
     if (RT_FAILURE(rc))

This caused some random crash in fedora14. I am surprized that this is not
cached by other platform or testings.

-- 
-Howard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.virtualbox.org/pipermail/vbox-dev/attachments/20110611/7fdaae3f/attachment.html>


More information about the vbox-dev mailing list