Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp1677856iol; Fri, 10 Jun 2022 12:24:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxHkgxqHfPIzJn7NlNro+HP0JyC0kCyJuuBDdOaYSU3xT0d26EzSK2nxt/AQZ+2ad65ftk X-Received: by 2002:a63:2364:0:b0:3fd:a62d:4033 with SMTP id u36-20020a632364000000b003fda62d4033mr25996482pgm.20.1654889063106; Fri, 10 Jun 2022 12:24:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654889063; cv=none; d=google.com; s=arc-20160816; b=tEc9dBC2M8RYcCIpCf0j4vwoW3DsfCojrDypmwsbmZgYF8BTBbmdRTGjDg0rInrCjf Wqg8KPmQsZH7kRYhFovb2T/7n1ogsD6zOmsEB33pKJpNsvW9/kzuiyjVLGsr1tAkkKdp IExEC6KT4sDXS7PPFKi+rVLHVx/SgVlPFMP17hVYbf7JZq4eMIZeoPH/sgyviy71BmCR B9r53SNoS4FnkwIBpQ60AK0taxajUDoW3OvXhuNy9vBFl6tgRF+IDLUKQNP6DqHJQ6Fm Putp0ys0z5K1eAk/JdNBxqDoMtdHoNgfOEzH56+wp/e2X71IiXsBkfz9GAw9uMGbRaqO gSXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:mime-version:message-id:date :dkim-signature; bh=M9u2uZrITY2ZmiHjCgQwdtv5Ky15VkyjtQ04bHL3Xio=; b=mgMg93t8l1/WZ5wib2hG1srzBHe+gC9WHHT6sI4s1xKlO42BnjZ3IrSuuyxUy5CrE8 7WvqCIQK0pCATKW5fGfF4+ESdgWYIB4iRyY+4NvdC2rGiTqjU2AMIvRo02ZTW2/RtGxS V3ZLRgTHqOg3KBfwVoiVmIWtk4CBk27zQ7pF4S4ThwWC1WgiMgzteXDUnkTGea9aLBNh YVgh2irJgPtvVfIAvu2LvyuBWqFyTOTU34MsOUMxFiRXJTacnrTnAdc/siYXukun2BfP wVjjD9vqQ0BDOXmSKNV6X6g3cxc/wQBwUc/ARBuqxlbury5Bm8MhJOLO1iSxUc5vR+ni vT8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=Jw3Ysj1F; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 77-20020a630250000000b003fd31d844f7si25063266pgc.538.2022.06.10.12.24.02; Fri, 10 Jun 2022 12:24:23 -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=@google.com header.s=20210112 header.b=Jw3Ysj1F; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348255AbiFJTTw (ORCPT + 99 others); Fri, 10 Jun 2022 15:19:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347463AbiFJTTw (ORCPT ); Fri, 10 Jun 2022 15:19:52 -0400 Received: from mail-yw1-x1149.google.com (mail-yw1-x1149.google.com [IPv6:2607:f8b0:4864:20::1149]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AACCC23BE7 for ; Fri, 10 Jun 2022 12:19:50 -0700 (PDT) Received: by mail-yw1-x1149.google.com with SMTP id 00721157ae682-2fed274f3fbso1230567b3.17 for ; Fri, 10 Jun 2022 12:19:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:message-id:mime-version:subject:from:to:cc; bh=M9u2uZrITY2ZmiHjCgQwdtv5Ky15VkyjtQ04bHL3Xio=; b=Jw3Ysj1F41dQlsGZWhUSX3Obz+Hib2iEiW0hh7Mijv3UwtrOyaCWrIIlSyAwUDSuos QtJuRKjf8bcVJGqnp/cfidbUkVLVhGWUPyepZYlwljByyeosI+xTQbv6S5qRsQE1kkjB 4g6O3P1k53JC3+z8MSkBnQ+tMlk8IKnhgBqJjq9wIph9VR1oWmUmRqAapif8fhobzgtp NjALOtVVeS7QJBxHZoXGBg7u3jRXuCJbg8GnrMAcnCx1Ws4QiEAZ86bBc6y4iWbRftjK Hj8+vTVFtkfWGc1IAklfE0cn6e19Q/jTuGUyBhm5cY+ojFPvzxc7hI3RW6aDW66GvSD/ MfbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=M9u2uZrITY2ZmiHjCgQwdtv5Ky15VkyjtQ04bHL3Xio=; b=LPHOtcqh3eFjxEkF1ABG3tthjMkjhxBnqaeer1cbsr3LfB4OW/cXze/i+CGCFKjuU9 dF7s/01lO3OJ7RCEPtJGxA/y4yiMFEwbE6qIz9LGp4YzMVcxRVzC+NKeAvCVVKZHZWoW 8O7j3MhVTnHu6yi2VOVtgT53yv/N3mn8s7eX598iboxjcriZyqxXIGTK9ZoCHe5m/R1o HRkGXBntm9U79FbBgQ7Y4Gxhem6UepVqadPfFlZewDDYjPkAZxq6CkMK+G0T2GqJ+Ekd It2G7HOYiG6O0BeXcWCIrXJxoVz2PXrUAgaZ/LvnMiO/lSuFXQQih/lqctVeuyJ5zikm b3ZA== X-Gm-Message-State: AOAM530bze2VDBgMrSS9k0L10xzxT/KPG7DNi1tr+GiMUnIh9ZLm52X3 i+1bz3F6azovsZLHxsb0y6r7EkX361CuooQV0IYWBWcQA/R8yVhz1daI4BqFG3BpkQM5k9WH4LX kKRsAVP74BJEEBW8Hf8frhW6l3T7lKME5mDD6bed0jxpjE6FUGb7sPMcysjPOsbDNbccrZrB0K3 GB X-Received: from jiangzp-glinux-dev.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:4c52]) (user=jiangzp job=sendgmr) by 2002:a81:260a:0:b0:2f4:ca82:a42f with SMTP id m10-20020a81260a000000b002f4ca82a42fmr50470972ywm.149.1654888789821; Fri, 10 Jun 2022 12:19:49 -0700 (PDT) Date: Fri, 10 Jun 2022 12:19:33 -0700 Message-Id: <20220610191934.2723772-1-jiangzp@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.36.1.476.g0c4daa206d-goog Subject: [kernel PATCH v1 0/1] Fix refresh cached connection info From: Zhengping Jiang To: linux-bluetooth@vger.kernel.org, marcel@holtmann.org Cc: chromeos-bluetooth-upstreaming@chromium.org, Zhengping Jiang , Brian Gix , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Johan Hedberg , Luiz Augusto von Dentz , Paolo Abeni , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL autolearn=unavailable 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 Get connection info will return error when using synchronous hci_sync call to refresh the cached information when the data times out. This is because the cmd->user_data was not set before the call, so it will fail checking connection is still connected. Changes in v1: - Set connection data before calling hci_cmd_sync_queue Zhengping Jiang (1): Bluetooth: mgmt: Fix refresh cached connection info net/bluetooth/mgmt.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) -- 2.36.1.476.g0c4daa206d-goog