From nobody Tue Jul 09 19:28:10 2024 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 4WJWHG5R9Bz5QxJ1; Tue, 09 Jul 2024 19:28:10 +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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WJWHG4k9Dz4q5b; Tue, 9 Jul 2024 19:28:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1720553290; 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=Ek63/277eMcMD8UAYZ0/Lio8JHFxfQLXjKDBenpIosY=; b=lnsCMB+Udf2owCVBS/SJ6se3E1J4Ntx76qdlsoKEgvg0Zg7jtvdeXAP1G8F//Z48gG5Q+g 3ksgw8Bb4nSu7Q+90XR6zRJlCcJF3R10HuLFvsrwdVMClUiqvKVRSyS/gaEGwkxzavd9mR 9Q6p0nrzQUSPLZ0WyYUlU3QZ64pPUV6tbABexyCaX/wh+UqO+vLGGzg5krW5NCw9MKGYxK PyE6m2EKRzDLxIpYACbsws5qydvriHgYrMFpgQO9+JA6jo6h+iWynZfW/yYrnPPSw/Z1j6 mYa7ViO8SApskWjPbB1Ngwkoiad/ZHknD1Whw+RfET8gF7Wb2C0XTryAlA/RCw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1720553290; a=rsa-sha256; cv=none; b=NhII/6EglZnNsutKzQOMJtK+nf5KrAtk+xJglGXJcOc3wgxNdaJx7XyGfuL0sjie23+qH9 UPnikMHPbAD4UVWdI2NInfbgqN1uSDnphyUYhtmkxFfY3/uIuf6xSKbFhCRZ21jU6UdRHV xHs5+/8SZGckwgwxavXW5ZX1wm2/8eXso/kyC1MhLVBA6mGlPYeiwG9IbRRrFVwAoz4v5F fGCpvfS11aIiJKpFwdsCO/tzBVlpP94hyaSDzWq2Hs+mdDqhJ9cA1EQOZkPRl9WoQvRpjQ iSC46Nffdwfisxx0esnJ+xe3iQqFlI208D9cN0mY+VM1H7RMgaLChWZ0WhbCng== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1720553290; 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=Ek63/277eMcMD8UAYZ0/Lio8JHFxfQLXjKDBenpIosY=; b=hvf2lIaQNL4Ri2COtuGYZvvfFfTWGKINlTyLMVYtgw7CRJJLJlbInpnMcQJunBRE0tTvNa l1r8SKWwQwWgwKbmoHQMCeyyuvhweesjG57a8qP85v2WVVSge+JuLNe8BXtrqTx5O3yMXi eBQaYpfawidv1QGILDU/A5HgH9ySQh7ogeJLJGcQflYkiN2U/ss4HZwM4w+Of44N2elgiA ssBZMurRffDUot2wDuh2twOEfMmxsrNzierQOGx1zsXLLgif+J7d2svNZ/deXT/EnOSr3w YB/GlhrlyXOZCFEjAP5OhUEFnL3Utnpg6oYNr/CJDXxnuy1f2753QR1D3AyE0A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4WJWHG4KSpzmgG; Tue, 9 Jul 2024 19:28:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 469JSAjO056776; Tue, 9 Jul 2024 19:28:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 469JSAaE056773; Tue, 9 Jul 2024 19:28:10 GMT (envelope-from git) Date: Tue, 9 Jul 2024 19:28:10 GMT Message-Id: <202407091928.469JSAaE056773@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Robert Wing Subject: git: 3114d55866b8 - main - sound: drop midistat lock in error path List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: rew X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3114d55866b86ca1132923211936aa23881b0057 Auto-Submitted: auto-generated The branch main has been updated by rew: URL: https://cgit.FreeBSD.org/src/commit/?id=3114d55866b86ca1132923211936aa23881b0057 commit 3114d55866b86ca1132923211936aa23881b0057 Author: Robert Wing AuthorDate: 2024-07-09 19:20:59 +0000 Commit: Robert Wing CommitDate: 2024-07-09 19:20:59 +0000 sound: drop midistat lock in error path Fixes: fc76e24e583d45a3a59fd7ad4e603c0679eaf572 Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D45939 --- sys/dev/sound/midi/sequencer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/sound/midi/sequencer.c b/sys/dev/sound/midi/sequencer.c index 6b3a2711e951..29e01fcaba2f 100644 --- a/sys/dev/sound/midi/sequencer.c +++ b/sys/dev/sound/midi/sequencer.c @@ -750,6 +750,7 @@ mseq_open(struct cdev *i_dev, int flags, int mode, struct thread *td) mtx_lock(&scp->seq_lock); if (scp->busy) { mtx_unlock(&scp->seq_lock); + midistat_unlock(); SEQ_DEBUG(2, printf("seq_open: unit %d is busy.\n", scp->unit)); return EBUSY; }