svn commit: r188464 - head/sys/kern
M. Warner Losh
imp at bsdimp.com
Tue Feb 10 20:48:43 PST 2009
In message: <49920E67.60805 at freebsd.org>
Sam Leffler <sam at FreeBSD.org> writes:
: Alexander Motin wrote:
: > Author: mav
: > Date: Tue Feb 10 23:22:29 2009
: > New Revision: 188464
: > URL: http://svn.freebsd.org/changeset/base/188464
: > Log:
: > Check for device_set_devclass() errors and skip driver probe/attach if any.
: > Attach call without devclass set crashes the system.
: > On resume AHCI driver sometimes tries to create duplicate adX device.
: > It is surely his own problem, but IMHO it is not a reason to crash here.
: > Other reasons are also possible.
: Please leave a comment in the code that this is basically a WAR for
: buggy drivers.
I'd personally make it a panic with a real message so that the problem
gets fixed... However, I know that's a pita for people, so I'd do
this only for INVARIANTS kernels. I'd whine *ALWAYS* and not just
behind PDEBUG. This is a bug, and we shouldn't silently paper over
More information about the svn-src-head