On Wed, May 14, 2014 at 07:33:06AM +0000, Hans Petter Selasky wrote:
> Author: hselasky
> Date: Wed May 14 07:33:06 2014
> New Revision: 266006
> URL: http://svnweb.freebsd.org/changeset/base/266006
> 
> Log:
>   Change the USB audio kernel module linking order, so that the USB
>   audio device driver is detached first and not its children. This fixes
>   a panic in some cases when unloading "snd_uaudio" while a USB device
>   is plugged. The linking order affects the order in which the module
>   dependencies are registered.

The right way of specifying that uaudio should be registered last, i. e.
after other device drivers employing DRIVER_MODULE(), would be using:
DRIVER_MODULE_ORDER(uaudio, uhub, uaudio_driver, uaudio_devclass, NULL, NULL,
    SI_ORDER_ANY);
instead of the existing DRIVER_MODULE() in uaudio.c.

Marius

_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to