git: 70d3fab9c40b - main - sound/midi: Always notify the provider from midi_close()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 12 Nov 2026 16:38:16 UTC
The branch main has been updated by christos:
URL: https://cgit.FreeBSD.org/src/commit/?id=70d3fab9c40bb297c0c7cf200887c9ce8dc6c555
commit 70d3fab9c40bb297c0c7cf200887c9ce8dc6c555
Author: Christos Margiolis <christos@FreeBSD.org>
AuthorDate: 2026-11-12 10:00:41 +0000
Commit: Christos Margiolis <christos@FreeBSD.org>
CommitDate: 2026-11-12 16:35:49 +0000
sound/midi: Always notify the provider from midi_close()
Be consistent with midi_open() which also invokes the callback
unconditionally.
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
---
sys/dev/sound/midi/midi.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/sys/dev/sound/midi/midi.c b/sys/dev/sound/midi/midi.c
index be555b8bc027..601348fac419 100644
--- a/sys/dev/sound/midi/midi.c
+++ b/sys/dev/sound/midi/midi.c
@@ -356,8 +356,7 @@ midi_close(struct cdev *i_dev, int flags, int mode, struct thread *td)
if (flags & FWRITE)
m->flags &= ~M_TX;
- if (flags & FREAD)
- MPU_CALLBACK(m, m->cookie, m->flags);
+ MPU_CALLBACK(m, m->cookie, m->flags);
err:
mtx_unlock(&m->lock);