Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp3048169rwo; Mon, 24 Jul 2023 05:37:33 -0700 (PDT) X-Google-Smtp-Source: APBJJlGvjqiowXG1zPEKspM0IXK8/XDV9UnYiwJNGUXtvDXHV35mtEaMuwlQEBXqyMJZ4uhhQpju X-Received: by 2002:a05:6a20:548e:b0:125:928d:6745 with SMTP id i14-20020a056a20548e00b00125928d6745mr14237618pzk.15.1690202253258; Mon, 24 Jul 2023 05:37:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690202253; cv=pass; d=google.com; s=arc-20160816; b=deXaajCKKblZ/121wfNypy7B60MnD3Ac/9kayiwUNY90GVoPnIxwsJXXR0Y1DD3WqX BLGyAcACv31CCRv+aaVbLyz9GDF9aNeSDISq0g57yWSCQMb1daVTWjwpSjQwmmB+2WTx P77Y8pMNlcdABzCuIbyb6PEYG7cCu0nKXHKmtJ3DpwQmFLZ8ExaI8ghzngT7dgu59Es1 iEaoagBFHUfYHdpmJCDl+mxqkmlAwMEpqAE84k2enGyDy6L/cQqKvk5wcF7w9pvr3ud3 t+LvL7PtMj/KRP5zTQ8pXSlMatfrLWFMbLklmtt93U2m3kq17UzE7N40Ugp/SSBSXXhN 1MGg== 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=9+Vt/J/BlONsyQ1oMFRrc/CGCw+kXKMyRVDegPe+sRo=; fh=O7b9e/0FHf0lC36zxfkGCP11r7lJVOROe7GJbtvFS9U=; b=MHgvK+sRA5hgmRalJfpjOmuN5lT7l6QXyNB1V+YlUZCZ92sYpBT5z90yPKqNQY/RVl zfYzqhduuGFdvIos9qHdekUZBHH6ejFeJRVDIxDDWFzgCultaMJnPRYfdyNqq9emky6V DmvlmpqNzchJn+XPth/IFxqaGXHEq6u1tnuS0wnYwSMm81FpWh9+tOQD54N7V63VStoQ 4cO7er6THwUOxoCW+y5vHTe6/08oslKH2shAjigqTEOAtDxRUq5fYepe2uJNN00RxdQF 8JMu0pimTpK+DZEM5Nkm3OvjwCJQICKxSXxiKJawrXnHaw+RTpDZPJg2dNid+5haXRKe Vh1g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=NkhOnzq3; 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 cw17-20020a056a00451100b006829969e393si9008778pfb.189.2023.07.24.05.37.18; Mon, 24 Jul 2023 05:37:33 -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=NkhOnzq3; 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 S229831AbjGXMaW (ORCPT + 99 others); Mon, 24 Jul 2023 08:30:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230353AbjGXMaK (ORCPT ); Mon, 24 Jul 2023 08:30:10 -0400 Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2048.outbound.protection.outlook.com [40.107.247.48]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B9DF1722 for ; Mon, 24 Jul 2023 05:29:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Bdy8pUN1vhkhJWPb87vlIFUDYFtdUvA6L04AHLX33WhAtm8rGegFWC2f0C3WxJeCfadMsbTjQJ4NpGp4zR2UNJ+xRiSBeuvhPwwEhOZVCNFWj2vSCgVodE23zf+nZNMakon8lrcElWfd2pTX+eLnB/XC36dQ2hw44D56JFeYstSuRMGi/Lbzg7+AsPVZRBWCYNCPoqRprOzU/WT5yXxnZXYJygCEkmN05bHPIN5DgphqaargfEERySRLfYX88e1EPlEyderFVq+GUdZHTiZi/MGVspEyJq2gl83GR9bAXNVPdwGLTKJGqyrT2aLJHP2VHaUy10pvmwyUuqrgUn085g== 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=9+Vt/J/BlONsyQ1oMFRrc/CGCw+kXKMyRVDegPe+sRo=; b=LEpZrrHUvRu2f1ghrgfw60wAbRSDs9NxXmD6rncyzwmgkTCitY5CEJlcPuD6JoyBNycDeOFhHctuVIreTuwJgJesKu7GuuXMOnb6rGPAKxmthIvJgzJX0chaSHsosmFu07c6hma1diuXMBG/PBk2SO6hagCS8ui/zzfq2xh4z8s0gM+guqqR+rp6JSkqbvIPBswCDGBHeUWuaNe6TuzPevxDPua+6a1knJkMGbuGeUOWsmnv1MkcvwnnsoO0gPEH0lDy83mFs/f+jOQTOOT3KzE+Jw2902z02+SwkVPD5q8oL3xd7qtiHjjUym8wgLIizHcrnpc4+Jfdq0JGrvu20A== 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=9+Vt/J/BlONsyQ1oMFRrc/CGCw+kXKMyRVDegPe+sRo=; b=NkhOnzq3gQbJv0TtWXbLwntLnyS6HfNkFR67pQCIJMfnD68Os6zRq7Hk3vTmeBm7IIaVDV4DTCwNXe1R+aYXeoAfA7QCV3MLDFpOMtv8Dy01ybTlmaIUBSXI86cbSV9rkE04bYfnPdgSklf7md4d7YJe44IK9p6Q6u5dXyKsf8I= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AS8PR04MB9126.eurprd04.prod.outlook.com (2603:10a6:20b:449::16) by AM8PR04MB8020.eurprd04.prod.outlook.com (2603:10a6:20b:244::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.32; Mon, 24 Jul 2023 12:29:50 +0000 Received: from AS8PR04MB9126.eurprd04.prod.outlook.com ([fe80::273d:f528:aaa9:288]) by AS8PR04MB9126.eurprd04.prod.outlook.com ([fe80::273d:f528:aaa9:288%4]) with mapi id 15.20.6609.032; Mon, 24 Jul 2023 12:29:50 +0000 From: Nitin Jadhav To: linux-bluetooth@vger.kernel.org Cc: devyani.godbole@nxp.com, pav@iki.fi, luiz.dentz@gmail.com, sathish.narasimman@intel.com, nitin.jadhav@nxp.com Subject: [PATCH BlueZ v2 0/1] Fixed the crash observed with VOCS Date: Mon, 24 Jul 2023 15:29:07 +0300 Message-Id: <20230724122908.42409-1-nitin.jadhav@nxp.com> X-Mailer: git-send-email 2.34.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: AS4P191CA0006.EURP191.PROD.OUTLOOK.COM (2603:10a6:20b:5d5::17) To AS8PR04MB9126.eurprd04.prod.outlook.com (2603:10a6:20b:449::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB9126:EE_|AM8PR04MB8020:EE_ X-MS-Office365-Filtering-Correlation-Id: 09cdde38-370b-4dbd-a829-08db8c41ac74 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aezZU9zKIcrPjd4SzMWnRUTEU12UojkFHihW8Yh7KIGFl0vKI9802hzoK9ov3yhrWiPOxg6bUE8s/hsmKkiAz/ioOIoWj34AV5D+6PR/KeiuhGX85TYNwwrZlS0/UG5mim7tH9dAU8KwCqeAWiVP4D2iwMxnnkIfF77OLR4cqj9zUv6YJ/mdxn9rm/lFcoO80lbpx9iZQ66q/JF3sDVYqSStHp2Xcwwb0Kp8UFXW3wIXzhJ1EL+jpG63Q3Sw1nQswij5Dah9RC/VPhyRbHrEuyx8kjPZe+kDxYnTIo+mHqz7WIfx3cf+3L/8i0TpVvt1fGtyIOeUe06Rwx1Y6dgGIt5iKZWX8MJK8vHYsxWn/uHewDj61Uf86RCnCDHzbtH61faDsYf2QdTuqPkvx5pK83dlGffqICWkQZ+oZj49EL8232bI+Iu8XK9cYslNgGHrmwa9Et0p/L+Ho2NIsjcH/nBgrIcDouF9+CIau/X9erNpt+Yw7FmUMAeLPwrDEAFsbo4bShJ4Hc5LZP/JoPSRD26Mei3JCzdUtokMD2z77jf/9CKlWZnoN4RJ5I0A5Kt5GKwdnxweit1JWquBbbrAVOx4kU0NfY0eZKzebZJrbKI= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS8PR04MB9126.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(346002)(136003)(39860400002)(366004)(396003)(376002)(451199021)(38100700002)(38350700002)(66556008)(36756003)(55236004)(2616005)(83380400001)(8676002)(8936002)(5660300002)(44832011)(478600001)(66476007)(6916009)(4326008)(316002)(66946007)(41300700001)(186003)(26005)(6506007)(1076003)(52116002)(966005)(6486002)(6512007)(6666004)(2906002)(4744005)(86362001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?mCpbFJk992Hu8soBBybiyKKxY6yn8/nG4eYbH1QPQY+5z6JTAqaQbHkG8mWj?= =?us-ascii?Q?NKa9rH9ho0o0IV6Cr2FB1b1A7z65bYKc+Yb2e7PnBMHXnE/iIAJUYe09vHbd?= =?us-ascii?Q?mLu8jom0TX6dIPTwwZUyRaV7Eh3xnaxxqEenAGWBX1ePrMVLUFpA22YMBdAs?= =?us-ascii?Q?O3GqdfV8HlfIyYY/tpWwh1dZvImau29kXGgcAhLXiyFAvR7BunBqG6dopyL9?= =?us-ascii?Q?CF0xJPEgAqW8/tl3XoWZWMezZlvrSbpp0AzlTckLwgxad30mCAspv2FWNGwP?= =?us-ascii?Q?jFQDornEmvFs3VSdwqa2wic5DY4zAvir2OxGcp5c2F416mLaPe0WCwi73yhH?= =?us-ascii?Q?/GFhZv66VfjRygIaz6Hx+FPT9Vrdd/4c8Z/z5GdeQG74Cm/mor7vAJFGjQ1V?= =?us-ascii?Q?yN7tBxBUXm/h6fNC62ScAkfRzzMMAnhlPqXF5oM9CCTkSRC5alD58X5clqte?= =?us-ascii?Q?Ibuv1WDyMiXmDHoE9OTs1b59/zAfcv3s3mh8X/vrJjvIs7gP1Kx0WPP5F5sV?= =?us-ascii?Q?5+/ouWb+9bEd5O9lueiQnZ71I//rRJ49YXSLhKIrcqVir9OnkUk1pJxZVhfQ?= =?us-ascii?Q?zxXccVtTDxG/ZSP8mjXAI2+m//090/ZC8KEmoU6NvOAH1lkoXrRiTyOSZ7EV?= =?us-ascii?Q?Ta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?= =?us-ascii?Q?7JIiVDnDbWCvbh2Qc/cICm/LITugZuu0D2bC5RXP?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 09cdde38-370b-4dbd-a829-08db8c41ac74 X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB9126.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2023 12:29:49.9762 (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: XEe1EhdYySRgQIBmeR8rmDvgkw4HXDGomXApv3R38EdmWxEHfIr894+9jKvatitLNLS1n3mRiqUkxIriJzEcUQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR04MB8020 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 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 Hello Maintainers This patch handles the fix for the crash observed with VOCS when trying to pair with LE Audio TWS earbuds. A crash was reproted for the following patch by Pauli Virtanen . Patch Link: https://patchwork.kernel.org/project/bluetooth/patch/20230612133251.194-4-nitin.jadhav@nxp.com/ Root cause: - There are two types of database- Remote and Local (rdb and ldb) - In client mode currently the code was written to access ldb Fix: - Correcting it to access rdb has resolved the problem in VOCS - Same correction is done for VCS. Thanks Warm Regards Nitin Jadhav Nitin Jadhav (1): shared/vcp: Fixed the crash observed with VOCS src/shared/vcp.c | 52 +++++++++++++++++++++++++++--------------------- 1 file changed, 29 insertions(+), 23 deletions(-) -- 2.34.1