mirror of
https://git.freebsd.org/src.git
synced 2026-01-16 23:02:24 +00:00
LinuxKPI: disable device_release_driver()
As reported by multiple people testing iwlwifi, device_release_driver() can lead to a panic on secondary errors (usually during attach). Disable device_release_driver() for the short-term to prevent the panic but leave it in place so it can be re-worked and fixed properly for the long-term more easily. Sponsored by: The FreeBSD Foundation MFC after: 3 days
This commit is contained in:
parent
bcddaadbef
commit
93b14194ac
1 changed files with 4 additions and 0 deletions
|
|
@ -506,6 +506,9 @@ static inline void
|
|||
device_release_driver(struct device *dev)
|
||||
{
|
||||
|
||||
#if 0
|
||||
/* This leads to panics. Disable temporarily. Keep to rework. */
|
||||
|
||||
/* We also need to cleanup LinuxKPI bits. What else? */
|
||||
lkpi_devres_release_free_list(dev);
|
||||
dev_set_drvdata(dev, NULL);
|
||||
|
|
@ -515,6 +518,7 @@ device_release_driver(struct device *dev)
|
|||
if (device_is_attached(dev->bsddev))
|
||||
device_detach(dev->bsddev);
|
||||
mtx_unlock(&Giant);
|
||||
#endif
|
||||
}
|
||||
|
||||
static inline int
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue