svn commit: r266006 - head/sys/modules/sound/driver/uaudio

Marius Strobl marius at
Wed May 14 08:38:11 UTC 2014

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:
> 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,
instead of the existing DRIVER_MODULE() in uaudio.c.


More information about the svn-src-head mailing list