From nobody Wed Jul 10 16:49:14 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 4WK3jR5rlsz5Qmr5; Wed, 10 Jul 2024 16:49:15 +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 4WK3jR0w44z4gdH; Wed, 10 Jul 2024 16:49:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1720630155; 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=9jsBToIkEXlsmoSis+149BrJcmXb/Fpt2HP8KpZFRik=; b=GAbFoOKDmcsTct977w5y9nwibI8MHbT084AQzZsu8BLQaZ1hba1gfe8LzVZbO1TDRFwDi/ 1pM9w9PiJS2qwkMNY08zqg6+I7Crs1nDS/du650WEbftnNAMXTueKCAxHaYtUUO8Mcd29d qrgQUtOOwiem1MtYd6t3H28Prxemm52saDmhDOg+CQuOkd+wvkFDb7Ko7eyyTXK/cKJvFU bW1WnYH8cr9lc9d2K2m7ghJrVXoIMf7dJhHIZ/Ul05eSUYiQmwHesUEJQt4XU1V5CiJ7AD 5PlBcAcZarDyaRATNax4kE7AM0IhliVg6L5ihbitak+cnC8/Bd9fgluZWiT66A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1720630155; a=rsa-sha256; cv=none; b=mUBBecAzUg3E2hRqh7Nt0fMMGIZmN8e6/oidPH6fkX+bLZYm3VT3/FGKi/U1GY+6XYp7xX 9g8tgpx5HsJ125VB191AkrizYVoiixgJy5T7DWd+s2zmotWqwm7JBoSllzDmSyKtq3hj+v yhNwzycNVgBzJKRHW7skmaTOSZEZH/ktAaHXN7tGxx4uBR2Ob2OtBr4CBWnVI11uFB/13e 9TEzWCIiy6OZ1ZqYCC8/iRPDlPiIMBCRnMxmpKF7x2x6M3dK2+zcJ2SZW/dkXFWRROQFGF kTdKZChCck3qM0XI7aWz+4ciLDCcohXonl6C98qTKKoPQV2xFnCBfLHIocvyAw== 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=1720630155; 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=9jsBToIkEXlsmoSis+149BrJcmXb/Fpt2HP8KpZFRik=; b=VbNwdjVvKsUS5hdd6I6vZCCeVSX7H6pioZIgEEVvDDsNbs4ZPLHn0nZ+SBOhgI7gXPnYU1 fpbIbgav1UfKgquKQ1c2u61EQLnqIjjNko8VSTIvAT5C9AkGe+yvsLXAef0IZwcgvFIW6P ASWhgKpVqX9IGaDNKakbTpAPeblxc1HH4/iXL6OQNHZj5LCGV03CFa6co0al2U6ZBmdGsM cYqK+dqsxTsIgrTHEZnOwtDEsYOfT2rwY51VtiLQsHno66hLQno2I4Z3GPEV0V+q5EBz1y 2VNMR65NOjVOJdA3vvpiovbXJg0gh2qxahmPJCQWMJBoJUkSySuKxAdqXR8rMg== 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 4WK3jR0SlDzQ5V; Wed, 10 Jul 2024 16:49:15 +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 46AGnEN7035343; Wed, 10 Jul 2024 16:49:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46AGnEFQ035340; Wed, 10 Jul 2024 16:49:14 GMT (envelope-from git) Date: Wed, 10 Jul 2024 16:49:14 GMT Message-Id: <202407101649.46AGnEFQ035340@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Christos Margiolis Subject: git: d6b6165ebb3f - stable/14 - 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: christos X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: d6b6165ebb3f3a591b2ba0f7c3b6dabca78806f3 Auto-Submitted: auto-generated The branch stable/14 has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=d6b6165ebb3f3a591b2ba0f7c3b6dabca78806f3 commit d6b6165ebb3f3a591b2ba0f7c3b6dabca78806f3 Author: Robert Wing AuthorDate: 2024-07-09 19:20:59 +0000 Commit: Christos Margiolis CommitDate: 2024-07-10 16:48:14 +0000 sound: drop midistat lock in error path Fixes: fc76e24e583d45a3a59fd7ad4e603c0679eaf572 Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D45939 (cherry picked from commit 3114d55866b86ca1132923211936aa23881b0057) --- 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 ab2d48294a6a..e4ea1e208356 100644 --- a/sys/dev/sound/midi/sequencer.c +++ b/sys/dev/sound/midi/sequencer.c @@ -751,6 +751,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; }