From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 46CC7C43334 for ; Fri, 10 Jun 2022 19:19:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349677AbiFJTTy (ORCPT ); Fri, 10 Jun 2022 15:19:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346372AbiFJTTv (ORCPT ); Fri, 10 Jun 2022 15:19:51 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4F8C1C92E for ; Fri, 10 Jun 2022 12:19:50 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id k73-20020a25244c000000b0065ca88b381aso137922ybk.2 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=cF3CWk36q4eDR4jtmwFGY+ZyGwHwMTxorVw6pQPgPHUaC/TnNQ+e/mzjMmdecqclE0 l9SUpzXro69TYRs6+KPWnDquk5zj479DLIIbU6gD67nVB2oPZgankp0Q7q6D78YjUI1P YKQMOrQlBN3a4UMsbUs22almO5SGQhQmTqq4N5ifNW6o4FTsUqHu1FzlAf0IBZYmXRYd 4tt/DNgdx1+RXILzIOWLAKaNQ8WtTiwKA+8Y6gm3ckPcMR3Yuy/Ol7dL6qu27Rc/DpJy DmifbIjHYs/8Oh7ZWgx0XF56lf5pKi8sVZNz+x5iT1GzkpuyRnukVMBZ0uPnZ8zWON7+ UjPQ== X-Gm-Message-State: AOAM530RoZ5Pjyt4sy/9GluFdjCnizkug1308oZxTOtGEXJ1NNZpnkiZ JeU/Qch5wQv9jwCCqgpbtYwxKF+NqGny X-Google-Smtp-Source: ABdhPJz10BJgI6Y5N6hUkaEeF9P58vCfexIRfPBz3ftn2TOWtVsMcosQC2GyO1ymsmhprR40j0sGd0CvFxr0 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" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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