mirror of
https://github.com/opnsense/src.git
synced 2026-06-03 22:02:58 -04:00
LinuxKPI: Replace missed Giant with bus_topo_lock.
This commit is contained in:
parent
22405bb2e4
commit
27ac2b2d49
1 changed files with 4 additions and 4 deletions
|
|
@ -514,10 +514,10 @@ device_release_driver(struct device *dev)
|
|||
dev_set_drvdata(dev, NULL);
|
||||
/* Do not call dev->release! */
|
||||
|
||||
mtx_lock(&Giant);
|
||||
bus_topo_lock();
|
||||
if (device_is_attached(dev->bsddev))
|
||||
device_detach(dev->bsddev);
|
||||
mtx_unlock(&Giant);
|
||||
bus_topo_unlock();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
@ -527,9 +527,9 @@ device_reprobe(struct device *dev)
|
|||
int error;
|
||||
|
||||
device_release_driver(dev);
|
||||
mtx_lock(&Giant);
|
||||
bus_topo_lock();
|
||||
error = device_probe_and_attach(dev->bsddev);
|
||||
mtx_unlock(&Giant);
|
||||
bus_topo_unlock();
|
||||
|
||||
return (-error);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue