Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp409836rwd; Wed, 7 Jun 2023 01:25:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6bME5ffDBn135YBCugJmFHmgBraeCrFEelxYayCP+r5VeC13QI2jYO7+sPfrf6FGk705bx X-Received: by 2002:a92:c505:0:b0:338:f770:ccc3 with SMTP id r5-20020a92c505000000b00338f770ccc3mr6538232ilg.21.1686126332444; Wed, 07 Jun 2023 01:25:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686126332; cv=pass; d=google.com; s=arc-20160816; b=DEbTGvaK0cjTIMwWmvoDeSfM09sKQBvd2D3U4UAesneZcM8GFLQ/+mxubdBp2cn27+ T3L8XM7gHyFHVW6rMd8V4CTzGu4uALpC6s5+nRzXYyWMmPTs9YuEJIQfGWfnIbe00DYF NZoh0kPWEAjv1r+gIQuVa4YIEjBXpHlA1SqnneQ97Ury3ma410p9/o51zUA52VaSlSiQ 1efDciWd5QFRFt+L2t27airGxk9DP7OycdsLM/9+V6hTasltplnrIHOSkqo2O71s/wAz 9cODDy4PLdY49qigAZjdgMiN0k3rcCJPkyySqCEU/1KeQV/72vhmHOLm+FqyAKBpSeb5 29Jw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=AJeFdGJWAalFImzG7YjvxDORIc65oIlDfo/fIjdV3pM=; b=s5AhoFu9ImNAYqQnpzr1MXkKNifVwY3ijLsQ5UQfrNrOUw0NgevHH2vi1jDHrg8VeX 4PWYnIFExLUF7t0ET9VzT/8EzYipsYS+NzS3oRXEHYKqvHOZCssH6JzZ3wgblBXZPTuy 5O63l0a53bqhohNmbTUYEgBk3wFXTn0gTRcc6wXan03of5Q5Ogmae/Tzyt8+EjpSnAod t92BOS20LPEfOH2A9b3ogSCMI7RluzMQxS3emmYcO95/OblIKmp7t25+xO0pAe/YHV31 /ziJbDkBe3nib1v6Li6SC3iOcbyJJjpL1BMjE6b+Y7EEy0rXzrGOh+rtAPHBZsnIIZtV NwoA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=JkSbVolz; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k62-20020a636f41000000b005211941267asi8320517pgc.153.2023.06.07.01.25.08; Wed, 07 Jun 2023 01:25:32 -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=@nxp.com header.s=selector2 header.b=JkSbVolz; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238859AbjFGIVG (ORCPT + 99 others); Wed, 7 Jun 2023 04:21:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239458AbjFGIVB (ORCPT ); Wed, 7 Jun 2023 04:21:01 -0400 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2071.outbound.protection.outlook.com [40.107.6.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 231011BC3 for ; Wed, 7 Jun 2023 01:20:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AbUsiRixR4AUggEjp/xdB3Slk9VS8LQgm7AKdcdG+qPIT05SCVG9P+YxD/XDcieghsNTfTQTPjN72TAvWcf5jKv6VgosZn1qk3/Ho5ZkL4Cr9SqrcATOOqa3Zc9wm3f9/jgtnM+WlldVRFZVigRex95stcHi8h/0PDZi25lbG8Q9lBn9Ff1aIQZJGcOlVWOz58O81RAWal5fi9uY/IMSLvIOKxb900QKoKmzDZvVHMuGgHAI/MfYodIAusZV//eMeQ8/xRYUXAVmyzEyykdCXmGthi8cDzpohpOw7twV1Jgj8WgXI+XhagfbaH9TCvp6sby3hq/mnCOSYulXB7W2uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=AJeFdGJWAalFImzG7YjvxDORIc65oIlDfo/fIjdV3pM=; b=f6PtNallp5KF4JPlg5R5zNfVO1bEAjRfwe4korl4uW9qyddv5nl9e0+EsTubgc6PFtMqEQ/p0RhiUbXIhvEeLd0JOjvoVTFrjZl+UBPFg4X1psdSD5NYkMbsl2AHEtVNfFYnoETEcSDRim57zUryEQ86R1NFq3mndAziqy5X1iyDQDqFT0aLfEtntsWWDcjm6EKBGOJk6Gq5E5xXaiJhYM1MBDhD1ufG9JSrGdBXR4D9R6KX1kh6xLHOhBQ5S/wi9kzCp50uNrTw7tMix52dO36lIQcXP6MecaJNG4Dj3rPcpk8eWq41cD+xd0rxUxpZX8yC6FKsJ0GNEAmKikHkmg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AJeFdGJWAalFImzG7YjvxDORIc65oIlDfo/fIjdV3pM=; b=JkSbVolzTFY/phWb5BZE24slKKNBcOr6Q1lLJxED3nq6RCX5v5UCkwYkhU30GuryidL/VowKa5JQtC8HSYLrqRLvQtsJ8ws6o6JTOVzJvIC+oBLRbPHsg/0Pgg3tT01Ol9rpDozkq21WDG1h5P4TZPKytbFObvt/BklDF52QOUE= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AS8PR04MB8898.eurprd04.prod.outlook.com (2603:10a6:20b:42d::15) by AM8PR04MB7299.eurprd04.prod.outlook.com (2603:10a6:20b:1d4::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.33; Wed, 7 Jun 2023 08:20:37 +0000 Received: from AS8PR04MB8898.eurprd04.prod.outlook.com ([fe80::7526:7510:9b32:e1fe]) by AS8PR04MB8898.eurprd04.prod.outlook.com ([fe80::7526:7510:9b32:e1fe%6]) with mapi id 15.20.6455.030; Wed, 7 Jun 2023 08:20:37 +0000 From: Iulia Tanasescu To: linux-bluetooth@vger.kernel.org Cc: Iulia Tanasescu Subject: [PATCH 0/1] Bluetooth: ISO: cleanup bound BISes Date: Wed, 7 Jun 2023 11:20:10 +0300 Message-Id: <20230607082011.4915-1-iulia.tanasescu@nxp.com> X-Mailer: git-send-email 2.34.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: AS4P190CA0003.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:5de::8) To AS8PR04MB8898.eurprd04.prod.outlook.com (2603:10a6:20b:42d::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8898:EE_|AM8PR04MB7299:EE_ X-MS-Office365-Filtering-Correlation-Id: f3b5244b-614d-40e1-5494-08db673012eb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FbcaCaP4km/DBA2U1qjTy4rDSmDTJ9avI3oIvBJTnF9PuyvSUFbUljxqiRB+7jQBqAxUgLX8Vz2IfC1MC0ayxWTc5K+54qvwUSQBa5QAED7NfH4GRFcvX+hxyfMWpk012vmZJoBLkSNoPsulSm+vrF1c99O/ED09m20GD2guWTvCQBt7Ss5OFXW3IIIpItmfAWnTQW6gfKwxbjkbqJCJHyhmoDqMryjKrTVf72vyx57jBO5UkTU3V+hDR/s59OtsnBL69dBPa2V74jDFOsT36HdEkyOnqbrqHlz2broA3e0FOYRNoaCCkZb0SHHclU5n9nxTh3qIwHI529GGxukcY8CHRe8pf5Tn5AcfAwKwWpdIBBsuey4EXGgNwQPdLZJdpjTOlf+zfo3XLvJb9MZOWTSf+hIkpCCQ30YJpxJs2wuBG1hOyjr7BdJ8vTvPY5kDyYPVciibVHrI7KfSz+nbgi3XpsTYJkK01kgjkC38lOY4dkNPefxJbIUbgZbiv+yvag0m3IC1ZT1UC94d1RTCeS2TuH9ihxs3/WF4nEtOBNu/ALGoPc9tKucAO8zjUDlhOHAqpEYMiYPgNsHJsg5M+c6C+rU6m62y2jJ+cRTYCsHXMgGWBJrR2reWqzCzsO/T X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS8PR04MB8898.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(39860400002)(136003)(346002)(396003)(366004)(376002)(451199021)(6506007)(1076003)(26005)(6512007)(2616005)(186003)(83380400001)(6666004)(6486002)(52116002)(66476007)(4744005)(2906002)(66946007)(66556008)(44832011)(5660300002)(38100700002)(86362001)(8676002)(36756003)(8936002)(6916009)(38350700002)(41300700001)(478600001)(316002)(4326008);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?QVAXSCQOyRQjb/C2hgkAh5C4/GjpX1VMpvaUIEP6Qnv2vxkmX32RVQLj69N4?= =?us-ascii?Q?mxuOSOek0FXgr2XZUg3/3u4x9pI+8wHIj/QXOR+E9Dvo6DI63fWLr/nHVuqn?= =?us-ascii?Q?MG7OKKLF1oM0YSTsHwip4AfaNMHW6b87iPJL/j40wcYYP2Miz8cuRY1ixZ/Q?= =?us-ascii?Q?GnCzlXoq7tycmYkI3cTeNNeQI1kzf3O7osCqaE1kEXF80SITioboo5LvYY7p?= =?us-ascii?Q?3U+FehIEI+TP1S/+oUPgL3TBlMEv1S70Xh8Ysj9Dd9ux3PPDuHA0YiAVuy8d?= =?us-ascii?Q?DVrWEHsuHlfTMRG5tNGU+EicQHWZpeuRYDunN6WSBqYiEavstKBUnSFXk0Ez?= =?us-ascii?Q?WSFanNz5K/h678g/lWY2i8oxc4BO3A0FoEP45koF+4jauI92ZGiKbHRT8iFM?= =?us-ascii?Q?yiEnWUjNyf/yjm+vIgPMuZmLhIyi/lR5TjA5J1Q+Rz+dIVN/Sy/uZ4bT/k/o?= =?us-ascii?Q?8utPaHvAlMjJDr2TJgFzrtmcp/qhjXz2SMasGoNoBpXwVvaE1o3dNalaHmt4?= =?us-ascii?Q?S0uTN1y6TfgHrqRQBrUHm6seW1UhkHtDmaoNFY6Bo2OSvFWFfwl6tVjwD24a?= =?us-ascii?Q?9GZ/7cmyT/tt2dDHIxtfxSRYVBjhPqbr39yHkMYN2/cALCnrprRKQwFsrp2f?= =?us-ascii?Q?ops8Fg4LQ4O2l0j8TNQfz/Db5Eu8qbtQmZruLi2aZPw+m3x+hk0gLPRWetBH?= =?us-ascii?Q?RoGeWOxxtlIb8wvVYGEMF0Wrfop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?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f3b5244b-614d-40e1-5494-08db673012eb X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8898.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jun 2023 08:20:37.7871 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ritfyctgFiLL1AnYs/ViuTL44xBzmplJ4PqaNNEDW7gZrV+9b8bucTnMYV1iSkWq605IbpKVmOQTkikG9698Yg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR04MB7299 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 This patch fixes the fact that if a broadcast socket is closed while it is still in BT_CONNECT state (that is before the BIG was successfully created), the connection will not be properly cleaned up - the bis_cleanup callback will not be called. If the socket is closed, even if the BIG was not yet created, the advertising set should still be terminated, and the conn should be removed from the hash list, so that when the BIG complete event arrives, no active connections will be found and the BIG will be terminated also. Iulia Tanasescu (1): Bluetooth: ISO: cleanup bound BISes net/bluetooth/iso.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) base-commit: 817efd3cad7481ce2ee25fac5108afecbad56228 -- 2.34.1