Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1492228lqo; Sun, 12 May 2024 05:12:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWNCB7qgxFrGcpVkkSdF+CQ7SIVI+gSJa1L4ENOWU3ULTDTFa6MF3ezoYTjQzKsS6fIBwwkgKf/Kiaxd8xoFjl5pW0C/bAVG0AECECIZg== X-Google-Smtp-Source: AGHT+IF+jN5F39FJahULDgTg0cgJ3kZOK2x8wU0lbwliJRhVD/F33/p+AI2LU5yylWBL79z26Y4C X-Received: by 2002:a0c:ea83:0:b0:6a3:3433:c759 with SMTP id 6a1803df08f44-6a33433c786mr10200536d6.5.1715515956353; Sun, 12 May 2024 05:12:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715515956; cv=pass; d=google.com; s=arc-20160816; b=PA7rSi0w9hwGGYSqBJwtIVUoY6pJG9Pkacjq2hNBXfj7ozAXOW+btlJIaVOxUP9lKo P540QeVbvadiaufCWO88UMx7OQs15GFaII/DADvqg0lzuIRam4J6ayuNRsEHWHzZS+BO aBVoHnXwQExUXvy1wrAsVd4RNDm5RHzqKuhEuYJIV0rfiO1+a2iyERzdqWnyjWlRFA9d NvdfWTMHZVyh2m9LI2x8Bxx7+fbg0oAAeyH8zW/mkib3G7iOsf5RnYWkUsMM0WEv5oOt OoGtlJ4UHQR7EiWU5OmD2+ak9PVDyKZwJ0evxwmYZ/qCEfx6WJ/q5n4T1B7QTddWtNHI oDCQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=tmTPtaaUTU1PMOIqHMgjAJaXmoE3Lg7dsS68Lm8tAG8=; fh=7pZRyKUgCwz9T3FLqABgDYz1KGiLa6mpuVFT7PipEMg=; b=Ynm+QBN7WhSLsPHoc/h+CvPjuEEUBSImzEyzTNhxjDxtlwzoCsOUVt9XTQr9/eJLpX I+2St0QSiXc/hfBDlZZ75bA45CEOIlxqjJPr/Nh/L7P2XwQrYJs8SaJvaQn28iywB/IT u2XYRazhg/Yp9aCaR3jpu69gWR/IFX+xg1rz4MXr7x3hv3VOQQyUZ+r7Zp80Dx2y3Tnp U9mVWHNTAipuRcAQFCW2okc8873ulVkQfRmdlLbSkxnxot+mGI0GM7yIVkD3JIi+Q0MM IUDAG6QSNNEXKjCAuRk2KJIeJKiNO6b2TIc6+yjlHhgGLa6nAAAyoucYKTmQNZtTzBwk z7dA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=m1kxCrPb; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-4542-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4542-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6a15f306ec5si76104326d6.585.2024.05.12.05.12.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 May 2024 05:12:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-4542-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=m1kxCrPb; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-4542-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4542-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 166DE1C203AD for ; Sun, 12 May 2024 12:12:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D369D23775; Sun, 12 May 2024 12:12:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="m1kxCrPb" X-Original-To: linux-bluetooth@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2C5501E894; Sun, 12 May 2024 12:12:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715515938; cv=none; b=lEiRlen9REFhzXdipxtOR4HH5Px/uY7O7TXr1D3dJOtrdYzUsVTSOy13mgfkAj0DB3axCJ2zuetlKCdyuYQpSvvDxRW7FhEUqq6xgDZJn42x8+z66C88k8wxOx+fa0oNxKhge8HtiskqPylGMu9sOScWjT8j9ND8QpIEMhiOEgI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715515938; c=relaxed/simple; bh=RIszvsmJIXjPFOCmrGRuen1Lj7EN27J+tC33ksTn8fA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qNJSUf5L3bLTGLMOVyI6lv/xM+mdjbMgSkx2jyDmgZa4VuQX7Ri+tsWaPHw0xdupAZvKyaOpEwS5pwam1nB15l0VY0hfIrBbAEM9ysGQysQOUd+tl1g01gQtB74/1ffTHMkAocN2s2J0zEhOEtbusfJTzoCwosGHGKUKb6vfuRQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=m1kxCrPb; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id D9747C2BD11; Sun, 12 May 2024 12:12:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715515937; bh=RIszvsmJIXjPFOCmrGRuen1Lj7EN27J+tC33ksTn8fA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=m1kxCrPbWk4pD1M10r4K82HllO3xF7FYIruQbCYniV5cIFiXGnZVbBF5twYg30pFe CKRKuc7d9QRUi9NDbo9Ir6DFzEH5GWGn63dGSZrbYq+DWUL6crjsmr2frCk82ESgyK 9pya8EH7OxRu9eQjpTfpvWRQRSVp8RwY3HOez+XvDF75i3VmomXDBhD+tbVuZbH1EE l1ydIduXuqVLHHV4QATNBG8JzshIxJIckSOP+haDJKWFKGue60NH5qJ7Qrf+KQIgl5 rODZkgsKHMC+MOcLLhfWpA/epCafQvIgH3VExiDl/0hSeCMfqiffkWowlZk2oZ26bh O+VgaI84/VBlA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id D21FFC25B77; Sun, 12 May 2024 12:12:17 +0000 (UTC) From: Sven Peter via B4 Relay Date: Sun, 12 May 2024 12:12:08 +0000 Subject: [PATCH 2/2] Bluetooth: hci_bcm4377: Fix msgid release Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240512-btfix-msgid-v1-2-ab1bd938a7f4@svenpeter.dev> References: <20240512-btfix-msgid-v1-0-ab1bd938a7f4@svenpeter.dev> In-Reply-To: <20240512-btfix-msgid-v1-0-ab1bd938a7f4@svenpeter.dev> To: Hector Martin , Alyssa Rosenzweig , Marcel Holtmann , Luiz Augusto von Dentz Cc: asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, Sven Peter , stable@vger.kernel.org X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1715515936; l=963; i=sven@svenpeter.dev; s=20240512; h=from:subject:message-id; bh=jmwV6wL7bQ7AC4V+W+yysWv9DtBZLTuAd0ES/PoP/v8=; b=7ui0qeOF+oHKDon5u5ak3Eh73AiQcV5LdfOLkQQVlohhDLtZ3KrwJxR+9srljp9ec98oAlQhL u3GwBfq3Cr0CPEfC86uW9tBlIhCnUzivu8IAebQ4U/BKta51vjqQsbj X-Developer-Key: i=sven@svenpeter.dev; a=ed25519; pk=jIiCK29HFM4fFOT2YTiA6N+4N7W+xZYQDGiO0E37bNU= X-Endpoint-Received: by B4 Relay for sven@svenpeter.dev/20240512 with auth_id=159 X-Original-From: Sven Peter Reply-To: sven@svenpeter.dev From: Hector Martin We are releasing a single msgid, so the order argument to bitmap_release_region must be zero. Fixes: 8a06127602de ("Bluetooth: hci_bcm4377: Add new driver for BCM4377 PCIe boards") Cc: stable@vger.kernel.org Signed-off-by: Hector Martin Reviewed-by: Sven Peter Signed-off-by: Sven Peter --- drivers/bluetooth/hci_bcm4377.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bluetooth/hci_bcm4377.c b/drivers/bluetooth/hci_bcm4377.c index 5b818a0e33d6..92d734f02e00 100644 --- a/drivers/bluetooth/hci_bcm4377.c +++ b/drivers/bluetooth/hci_bcm4377.c @@ -717,7 +717,7 @@ static void bcm4377_handle_ack(struct bcm4377_data *bcm4377, ring->events[msgid] = NULL; } - bitmap_release_region(ring->msgids, msgid, ring->n_entries); + bitmap_release_region(ring->msgids, msgid, 0); unlock: spin_unlock_irqrestore(&ring->lock, flags); -- 2.34.1