Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Mar 2026 10:38:51 +0000
From:      Christos Margiolis <christos@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: a49e925489fb - main - sound: Match midi_write() return values with midi_read()
Message-ID:  <69c269bb.3379e.1d9f87e5@gitrepo.freebsd.org>

index | next in thread | raw e-mail

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;
 


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69c269bb.3379e.1d9f87e5>