From nobody Thu Nov 12 16:38:12 2026 X-Original-To: dev-commits-src-all@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 4jQR050ynHz70sRF for ; Thu, 12 Nov 2026 16:38:13 +0000 (UTC) (envelope-from git@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) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4jQR0444GRz4JHn for ; Thu, 12 Nov 2026 16:38:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794501492; 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=vuM0KsZQ0uW2zdsLyir1bpsFJvKwmgI+cQ9/q5hebwQ=; b=LXBcSHS5RO8LtO8PK23riXnIgVcwDcpk3H6R1w38Vprn/HdU+El3oWaYfn0hLdJprzIok1 GQY1qNoi3oyQZPNRUHpt0e0btKa1vX06w5+IRTr75BoyPGuorjKZWJogO1NJI6gcc9ViIK hVR41RAznXUdYvyXQhn4cKPuMSaA5wZSSwnfZW/jg2KkomEVIrxFklSHRxAVLNgg/wgQvz MxXdNj3rqMqScFSx2TeIaU60Q94Q7vdl5WhvQMl7TEfk9JbAcPqH4T8/3fc3yJqM661ndU 0/1YtPlBA75F9g2zb8fQp6lo8Vdj4DufDQA+gX94LL0WAOIviEYrCiTAkfYrDg== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1794501492; b=E6GqWB1l7xK/OQ24tYmrV1TLSdScKlIJR+gXOPX8L3+tno9ron0YfdxagVwELX8Hhs4M5V cbX3a2vs7hB4LBoLwXNvlYW5LHpEjduHXhh91c+/xy/as+HFfO18+Jxs7ou6CFcqEe0Hbz 3abjPolmX77Z54LWHerCCBQyoxllU5eliGgXkiXHQTmuhUMAk0/z5HSgaPRoLkaeiZDfEi FF0F7DIlMGe4qTCfoO9M4Dj2ISOgyCpII6Om9kDjiON4mOa5N1KblP2g9mmTSVHK5k2gRK uM0el40aNraSDf2pAXyClc15WznonM7LJZJRk7C/+xBnmBGuo/2NafvW9hmd7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794501492; 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=vuM0KsZQ0uW2zdsLyir1bpsFJvKwmgI+cQ9/q5hebwQ=; b=jwpYKqciM9currY2GN9Fl+MLY9xaMuIZXIQsSJVnQwsQl4RQCWZstBWAMRTA1LO1IsdCqM /JX60zSBjB7f3gwJPNYt0ujOuMe+RZjHYGgS9ji7EOIl5FM4bE749xnxI6C7YcXeVbRZNX UJLxdXr4TZGcMuij/71cc+m6cFp5lEP459/2uie8hwqA38mHZ4GYL8yXx8M10zhDGlWu+r OHRIAX0oen2kFD9wAAATkcBYFisk58q+28ryfyRviSebX1FwmvMGcIa+GjgZZKx7blTDX4 u9tAWURWEZajhHVpbjfydm/bz4sU0Sk3T/vF8fRmxrFPd4pywhuaIfuBiF6yew== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4jQR043TzSz19dS for ; Thu, 12 Nov 2026 16:38:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 46e9 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 12 Nov 2026 16:38:12 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Christos Margiolis Subject: git: 690b242cbbaf - main - sound/midi: Fix inverted POLLOUT test in midi_poll() List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all X-BeenThere: dev-commits-src-all@freebsd.org List-Id: Commit messages for all branches of the src repository List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: christos X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 690b242cbbaf22a5f5c7a3203798a7d77c5e61d2 Auto-Submitted: auto-generated Date: Thu, 12 Nov 2026 16:38:12 +0000 Message-Id: <6af5eb74.46e9.736d288@gitrepo.freebsd.org> The branch main has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=690b242cbbaf22a5f5c7a3203798a7d77c5e61d2 commit 690b242cbbaf22a5f5c7a3203798a7d77c5e61d2 Author: Christos Margiolis AuthorDate: 2026-11-10 14:18:51 +0000 Commit: Christos Margiolis CommitDate: 2026-11-12 16:35:49 +0000 sound/midi: Fix inverted POLLOUT test in midi_poll() midi_queue_avail() returns the free space, so the test had it backwards. MFC after: 1 week Sponsored by: The FreeBSD Foundation --- 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 dbec096e3f66..a078c02dc767 100644 --- a/sys/dev/sound/midi/midi.c +++ b/sys/dev/sound/midi/midi.c @@ -543,7 +543,7 @@ midi_poll(struct cdev *i_dev, int events, struct thread *td) selrecord(td, &m->rsel); } if (events & (POLLOUT | POLLWRNORM)) { - if (midi_queue_avail(&m->outq) < m->hiwat) + if (midi_queue_avail(&m->outq) > m->hiwat) revents |= events & (POLLOUT | POLLWRNORM); else selrecord(td, &m->wsel);