svn commit: r287888 - stable/7/sys/dev/sound/midi

Tai-hwa Liang avatar at
Thu Sep 17 00:19:28 UTC 2015

Author: avatar
Date: Thu Sep 17 00:19:27 2015
New Revision: 287888

  MFC r286887: 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.

Directory Properties:
  stable/7/sys/   (props changed)

Modified: stable/7/sys/dev/sound/midi/midi.c
--- stable/7/sys/dev/sound/midi/midi.c	Thu Sep 17 00:17:32 2015	(r287887)
+++ stable/7/sys/dev/sound/midi/midi.c	Thu Sep 17 00:19:27 2015	(r287888)
@@ -403,7 +403,7 @@ midi_uninit(struct snd_midi *m)
 	int err;
-	err = ENXIO;
+	err = EBUSY;
 	if (m->busy) {

More information about the svn-src-stable-7 mailing list