mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Make sure the driver's ops table has been initialised before calling
static methods.
This commit is contained in:
parent
66682a7f1e
commit
0d484d4793
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=59489
@ -1842,6 +1842,11 @@ bus_generic_driver_added(device_t dev, driver_t *driver)
|
||||
{
|
||||
device_t child;
|
||||
|
||||
/*
|
||||
* Make sure the class has a valid ops table.
|
||||
*/
|
||||
kobj_class_compile((kobj_class_t) driver);
|
||||
|
||||
DEVICE_IDENTIFY(driver, dev);
|
||||
for (child = TAILQ_FIRST(&dev->children);
|
||||
child; child = TAILQ_NEXT(child, link))
|
||||
|
Loading…
Reference in New Issue
Block a user