Skip to content

Commit

Permalink
FreeBSD compat layer: root->softc needs to be zeroed, not root.
Browse files Browse the repository at this point in the history
  • Loading branch information
korli committed Aug 1, 2013
1 parent 2285a74 commit 8f5dbad
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libs/compat/freebsd_network/driver.c
Expand Up @@ -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;

Expand Down Expand Up @@ -273,4 +273,3 @@ _fbsd_uninit_drivers(driver_t *drivers[])

return B_OK;
}

0 comments on commit 8f5dbad

Please sign in to comment.