Commit 93b14194 authored by Bjoern A. Zeeb's avatar Bjoern A. Zeeb
Browse files

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
parent bcddaadb
......@@ -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? */
dev_set_drvdata(dev, NULL);
......@@ -515,6 +518,7 @@ device_release_driver(struct device *dev)
if (device_is_attached(dev->bsddev))
static inline int
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment