mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Using the error return code documented in the comment.
Though there is no direct midi_uninit() caller amongst existing drivers at this moment, a quick experiment indicates that EBUSY gives users more precise error message once drivers start to honour this result. For example, emu_midi_detach() should check the result of mpu401_uninit() and block module unloading if there is any MIDI I/O in progress. MFC after: 2 weeks
This commit is contained in:
parent
7cbd5add2f
commit
076cf2dd66
1 changed files with 1 additions and 1 deletions
|
|
@ -403,7 +403,7 @@ midi_uninit(struct snd_midi *m)
|
|||
{
|
||||
int err;
|
||||
|
||||
err = ENXIO;
|
||||
err = EBUSY;
|
||||
mtx_lock(&midistat_lock);
|
||||
mtx_lock(&m->lock);
|
||||
if (m->busy) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue