FreeBSD compat layer: root->softc needs to be zeroed, not root.

This commit is contained in:
Jérôme Duval
2013-08-01 07:37:59 +02:00
parent 2285a7451d
commit 8f5dbad65b
+1 -2
View File
@@ -61,7 +61,7 @@ init_root_device(driver_t *driver, device_t *_root, device_t *_child)
return B_NO_MEMORY;
}
bzero(root, sizeof(struct root_device_softc));
bzero(root->softc, sizeof(struct root_device_softc));
root->driver = &sRootDriver;
root->root = root;
@@ -273,4 +273,3 @@ _fbsd_uninit_drivers(driver_t *drivers[])
return B_OK;
}