git: a0d3a7da00d7 - stable/15 - sound: Match midi_write() return values with midi_read()

From: Christos Margiolis <christos_at_FreeBSD.org>
Date: Tue, 31 Mar 2026 09:54:57 UTC
The branch stable/15 has been updated by christos:

URL: https://cgit.FreeBSD.org/src/commit/?id=a0d3a7da00d74cdd4f60a2a15efbaefaeb2c3c01

commit a0d3a7da00d74cdd4f60a2a15efbaefaeb2c3c01
Author:     Christos Margiolis <christos@FreeBSD.org>
AuthorDate: 2026-03-24 10:31:08 +0000
Commit:     Christos Margiolis <christos@FreeBSD.org>
CommitDate: 2026-03-31 09:53:16 +0000

    sound: Match midi_write() return values with midi_read()
    
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
    Differential Revision:  https://reviews.freebsd.org/D55920
    
    (cherry picked from commit a49e925489fba23878b3004b2bff7549dc2f2bcb)
---
 sys/dev/sound/midi/midi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/sound/midi/midi.c b/sys/dev/sound/midi/midi.c
index 4fd0e3dcf134..e70f76a44ed9 100644
--- a/sys/dev/sound/midi/midi.c
+++ b/sys/dev/sound/midi/midi.c
@@ -421,7 +421,7 @@ midi_write(struct cdev *i_dev, struct uio *uio, int ioflag)
 	int used;
 	char buf[MIDI_WSIZE];
 
-	retval = 0;
+	retval = EIO;
 	if (m == NULL)
 		goto err0;