Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp25213835rwd; Sun, 2 Jul 2023 12:39:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6d3VYCIGOVHZ26dYF7ChyezejY/wupKur54pGmDhj+x6XRZj3MtEW4ytPtCYVn04A5fXUo X-Received: by 2002:a05:6a20:5486:b0:12c:f581:c3a3 with SMTP id i6-20020a056a20548600b0012cf581c3a3mr9961560pzk.6.1688326766176; Sun, 02 Jul 2023 12:39:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688326766; cv=pass; d=google.com; s=arc-20160816; b=DndbV8cxZpfEYqZQtJnep9eTU3sDyNZODLEAdjFKIL/641iAeYxirJbIq+236ubv7n YKw7m7BbjwnY0iCpteMBIZTy33up6Lp7rdGYHW1BqwroE4W0UL778Ma5Mesb3b84xxKz fTLECzjt7jTcIwFp4dV41JY40cb9+dygivv6779UhorQIBpMrPzKCcW10UyJLrKlDuKG 2vrDPj/jD5qeKp2YoXa7sSffTBWlisAvRltvHdbjWIELffr706ih5gTWtkIAqR5/E9cp 6PuhRNJUxJNQ4lDp84AFzr2RmzbPeUkypU4jl3sUCatunyrAEpMl0v27tAhRXWYRNWxc 91BQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2ry3Gs3ypdQxJSRFrm44H6LVyp9adVRUWAhuPQORacI=; fh=ExGhjNQEFJgRqHmYATVc5UXZbS7abAmaHDitrfHKOuE=; b=ILgLrFqmzWc3DiZZJUcjeObOXFJLyVpIBON+oqZmwH8YyFC0zHs2Jrp/rnzVvMtfa8 ipYs/+yK3jg4VPHeNsfj49Zdmk6LoLZWBo3TiDB2Ff4lGRd4yGQlkYXcAUUarMiu9MNW q4DbQ0gKrhFctSV6xymISXlPfyDFnpYLsjYFBN2E01ZqXxJzWuKsdeANuIxIN3VmarBI slWUleYHFLF4k7wjNdSqlXDB9i2Lfwn/LCA+rhJF1kBVspHykTfKn+aE1ev7xtXNgwp4 t/woQqVi6PLciiD5NDDgP9jNQn6S3m0xSk5b7oukljQrhbG14EEC1L38u7WHaW81ATj1 tlcA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@iki.fi header.s=lahtoruutu header.b=S7l+lekH; arc=pass (i=1); spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u70-20020a627949000000b00672ad8f037esi14505730pfc.231.2023.07.02.12.39.00; Sun, 02 Jul 2023 12:39:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@iki.fi header.s=lahtoruutu header.b=S7l+lekH; arc=pass (i=1); spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230156AbjGBTeZ (ORCPT + 99 others); Sun, 2 Jul 2023 15:34:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229992AbjGBTeZ (ORCPT ); Sun, 2 Jul 2023 15:34:25 -0400 Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [IPv6:2a0b:5c81:1c1::37]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9DE4E6A for ; Sun, 2 Jul 2023 12:34:23 -0700 (PDT) Received: from monolith.lan (91-152-120-101.elisa-laajakaista.fi [91.152.120.101]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pav) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 4QvK4Y5ZlDz49Q7F; Sun, 2 Jul 2023 22:34:21 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1688326461; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2ry3Gs3ypdQxJSRFrm44H6LVyp9adVRUWAhuPQORacI=; b=S7l+lekHTFbvPsAsnA4C/xD3gYQtkg5yc3LwXRSMRBtdf1OeweqOz9ahD+sgvfT0BQMNXg vbhdNTD/HS5G6U2a7FmTBt2kZkpHXs2Hyv42Opp585chFR4943kzRwiajuQuptoqMXwNkV UmCGNJ8p5kjaVs0U+YpRHG9kA1h+Np/5nSAQ0EKu++hguPNFRlHvQcLah8qd0wgBaufa3c ol8TAHhW0M1A+Q7qNrXVydH7Qb5T+V6ePxT4g1hfva4onn0FU/fHmdEJ7a6unJMpSZ5cDk NZtSlSBK+FEcsCbCDQ8UZqmU9ZcAVbPQw2A2iVO8pf3u+/5+O+SdSqMRruNNgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1688326461; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2ry3Gs3ypdQxJSRFrm44H6LVyp9adVRUWAhuPQORacI=; b=goI5+1uljPvZAmRlZVjWKkq6VtgqDZoGUjlmHldchL2oKigr1AL+srDvluocHxVnV0fn7l /aT5/0qiyGUdeKVvgzaM6Q9y9nheqeXczEz/pYsQgbmA+OVuwgFnpirbGPZVQpencQ7vdZ Bhv8D+c56eMvJBWwYUHnP8xo85l+UcUQzQlCjn6icf2XFUkIDuqVi09gDm21AFKu1r2UQw kD97Y9I6iY5xJJ+z7SNlbQrZhAkKzf74pN0Tf0U0yjJuT/BuVfV5+3cwZN9vV0PBwnUsxI InzdBb2XXPRcmRF6FURd+aPkHmsEAtZ36pbT/icVG2uLkADSaxw5pwev2siYgg== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=pav smtp.mailfrom=pav@iki.fi ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1688326461; a=rsa-sha256; cv=none; b=jsUhJ+QE+NOqkwIXZW9eXjUbRpVmCE35al1g5Q+LifncO1AbLrRwxP64Z/zivslpcCUDny bOg+zx+dwyrJtwwz3wy5ARRwMAeTPsO+iSInDy2FsLLYq/o2gx4u5rC/3A4FOF1nw5WQ9t 9EzN+Cc8bj2IKeIVa0AMBQirKNwaP57/Iq31ckaI042E/YdRd7Y7UWb8hiq8Kj+Xi2iCCU YExt0j+EV5TMeo7XdCc16OSzHAksA+Oyw6G1+oVRKJT7i2UFIo5R3gZ/goyI9L/Sr2l0Z0 LFU4FtcHLt8cwcLwXK4u6AWkl+BhjoxNCdz7CmAi9KZvMbY3QlXxl+MAg9J3xQ== From: Pauli Virtanen To: linux-bluetooth@vger.kernel.org Cc: Pauli Virtanen Subject: [PATCH BlueZ 2/2] shared/bap: use only nonzero req->id Date: Sun, 2 Jul 2023 22:34:19 +0300 Message-ID: <7e5753e471757d50569802ddb19546768dea07f5.1688326228.git.pav@iki.fi> X-Mailer: git-send-email 2.41.0 In-Reply-To: <8af1dd5097cc4411ff2681ed39c49c232f817ebe.1688326228.git.pav@iki.fi> References: <8af1dd5097cc4411ff2681ed39c49c232f817ebe.1688326228.git.pav@iki.fi> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org In bap_req_new, use same pattern as elsewhere to not use zero as a valid id. --- src/shared/bap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/bap.c b/src/shared/bap.c index 13c76afe6..72ce67c08 100644 --- a/src/shared/bap.c +++ b/src/shared/bap.c @@ -4303,7 +4303,7 @@ static struct bt_bap_req *bap_req_new(struct bt_bap_stream *stream, static unsigned int id; req = new0(struct bt_bap_req, 1); - req->id = ++id; + req->id = ++id ? id : ++id; req->stream = stream; req->op = op; req->iov = util_iov_dup(iov, len); -- 2.41.0