Date: Mon, 10 Jan 2022 03:30:28 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 261071] snd_midi: unit 0 cannot have 2 or more channels Message-ID: <bug-261071-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261071 Bug ID: 261071 Summary: snd_midi: unit 0 cannot have 2 or more channels Product: Base System Version: 13.0-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: masatic.bsd@e-koubou.net Created attachment 230855 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D230855&action= =3Dedit patch, for 13.0-Release-p4 midi_init uses 0 as auto-allocate unit number, but unit 0 is also a valid u= nit number. This confliction makes secondary function call to allocate another channel = for unit 0 is treated as auto-allocate and returns non-0 unit as result incorrectly. Attached patch fixes this problem, auto-allocate number is changed from 0 to -1. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-261071-227>