From nobody Mon Jan 10 03:30:28 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 3627519563C6 for ; Mon, 10 Jan 2022 03:30:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JXK8h4sgQz3rNX for ; Mon, 10 Jan 2022 03:30:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 88C921DCDB for ; Mon, 10 Jan 2022 03:30:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 20A3USK3057685 for ; Mon, 10 Jan 2022 03:30:28 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 20A3USva057684 for bugs@FreeBSD.org; Mon, 10 Jan 2022 03:30:28 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 261071] snd_midi: unit 0 cannot have 2 or more channels Date: Mon, 10 Jan 2022 03:30:28 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: masatic.bsd@e-koubou.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1641785428; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cgX6Jj+LwzG93/zqMQl7HGVjMgnQZ7rjITyd/V411QQ=; b=mqlSI7c2l6ZcmURb0aZi+E5uEhsP2+g5B3DQbxcaONFUtF8U23ghFY3uR7HpnrmhBE6BIw wuQvHSwFDmq3y84PlF+FE2Mm7rYEhjyeUheDX8/Z508Avj8jpDQ02RAFkWHNu9lpbarKMK 7vHMe2f9mQcmZMLV+755IDRfHVu2GR8rtInbHCDNuHD1J0xAFoGn1WBz0A9V19zIUlLaRN jbaw9RK1aYRrCjXtgejNOZlsyHMp+xyYjKUtbN32E0TJrv2p2Vp8yUbv5/p87EfchPJSHP iuhQwlkb/qKDpGvwnIvZy1Q2maiKtFo47dXC5tZsXImvm3APsdUVc/txD5vcig== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1641785428; a=rsa-sha256; cv=none; b=idXGKzdNQs0r/kr8mfLrof250y0PkpLMKUXYx/pkgeu4Cx3BJpCCLatVOY4pYKyjfxPkTE zoZYMmmKSlEC9Qa3IbaLhBzNBsChEwNGD0SG7OANHQfk16xVqXrWqv1Iv6j02MfSH3f+wZ e+W3GkYgy3/T2UOqYExHI+g+t0FlpNLuYdRYechgZKGT4V6nCDYLIsoS+w4gOKzv8ZpY48 ccVmd+NhZJrkD0SRwlV2f7BqFcVWd20WlwFK8d7FvW7srzXWL+BiALmcpV7+upFRLdf6nP lm/P25CXdGUP4wH0FZ8AQTzW1eT+1W3H85Fu3JqB1ZQwgbMlxpP/W11SfH91JQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N 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.=