git: a49e925489fb - main - sound: Match midi_write() return values with midi_read()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 24 Mar 2026 10:38:51 UTC
The branch main has been updated by christos:
URL: https://cgit.FreeBSD.org/src/commit/?id=a49e925489fba23878b3004b2bff7549dc2f2bcb
commit a49e925489fba23878b3004b2bff7549dc2f2bcb
Author: Christos Margiolis <christos@FreeBSD.org>
AuthorDate: 2026-03-24 10:31:08 +0000
Commit: Christos Margiolis <christos@FreeBSD.org>
CommitDate: 2026-03-24 10:38:40 +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
---
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;