Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3457825iog; Mon, 20 Jun 2022 21:38:10 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u1fZgl/b8fTgFKjtcxidRtl0GcVVI9YyhmagwlYHezGssXETmpYh9Slu+bPbci++LITQFe X-Received: by 2002:a17:906:a898:b0:70f:efe0:bfc2 with SMTP id ha24-20020a170906a89800b0070fefe0bfc2mr24358027ejb.59.1655786290534; Mon, 20 Jun 2022 21:38:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655786290; cv=none; d=google.com; s=arc-20160816; b=KdeOO/0hdRHgMX+a5oBDoojtA0R8C15ZOOMJsIzynE7nFitLLqzNhmC0cZ3YGY0nAM bvTwkbrT7Q0ZOTRXfQJG3MsytU5WohoHBwYl9mGXdcJpuOHGVyT9kxtGMj8QmM8DN1fZ ushGCJD3kIR98msg0x8g3Envr8LSow8MbNDEtSfpAH93w38EbLE34/hC/KQgTvywkKWf tLZxmc24YF4rsftHOefOszEf4iDd0vUDPsus7JZXwZPvJzu3O26TYVlfy83g4ZVsDgP1 yAGdUFHGxtl4DGd56iVkYWL+nK8ks3znWZyNy5+khjktPrLSzCRhp9mzgowaHubxbi5k hjHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=G78sfSd0FxhXAy500TXERLnkf8+w6cPIrVJSzdqavq0=; b=FLBy+rwM0jqQv/lP0regnzcXzy5KiGeI0cL5R8hWoISD9g4+IaYRf7RPHKn41PcHeT 2NrJAQ6nkQHP/D5kFuYFjOmLoew0puxxbH2/cCao4EfBpGvgYxDaGiC7sYyi3cQxjodm uDedv5hPNXQuLnO+y/XDdGgGC72LrWwxlIvJ0yEYlguuonCgVAGYkpcOUTByVHv7ME1s vPtIV52sO7eB5ocB/bYgnESCmUwQARKnoP7FU+aooUtwGwOq/W/LnbMxTl/+M9iU4nfO sj+eotqOrs/qrh+tppgUBKb1wX12rRHFtPGyUidqHz5vEtLzJT0yI7Xz/kXUzHpC+twE UfcA== ARC-Authentication-Results: i=1; mx.google.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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s21-20020a056402521500b0042e2e1a8197si17332599edd.31.2022.06.20.21.37.45; Mon, 20 Jun 2022 21:38:10 -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; 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 S245609AbiFUEbr (ORCPT + 99 others); Tue, 21 Jun 2022 00:31:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236377AbiFUEbr (ORCPT ); Tue, 21 Jun 2022 00:31:47 -0400 X-Greylist: delayed 56280 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 20 Jun 2022 21:31:45 PDT Received: from smtpproxy21.qq.com (smtpbg703.qq.com [203.205.195.89]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1FADB7FD for ; Mon, 20 Jun 2022 21:31:45 -0700 (PDT) X-QQ-mid: bizesmtp75t1655785900tfvdiqrr Received: from localhost.localdomain ( [113.57.152.160]) by bizesmtp.qq.com (ESMTP) with id ; Tue, 21 Jun 2022 12:31:35 +0800 (CST) X-QQ-SSF: 01400000000000D0G000000A0000000 X-QQ-FEAT: cwL8yz+KJ/asnA4U/E8IQY6//P/cJ80d/z8df4hMixvK77ac/bU2UNcSaOeqt FM6DthTZIlhF+4DRFkDSqiM2tP5mN/TSA3V9W8OExYf6aq085HwcBw6pLrdJ6F7ZNrWVzAc CXMJeouwSByi6OtKo9FITugf4vVLqdfiA9vm7SXQVGvC9ndPis56mj/nkU2CSqPvw6zxdbX 81qzDuPR08Ma3GHH8HwR23yrDnZI3jYpbmIdiLrKpqfqo4l6ZcdSGvQC/+t6AUhbtdf2fEp ezQ7a/3mk9aYM9mtOEFxIMdqF+iCIAQpkr3q5ztlJk8etZJN/ZmvHUtVFWtmlvxvbAXA== X-QQ-GoodBg: 1 From: Chengyi Zhao To: linux-bluetooth@vger.kernel.org Cc: Chengyi Zhao Subject: [PATCH BlueZ 0/1] avdtp: Free discover when send_request returns error Date: Tue, 21 Jun 2022 12:31:32 +0800 Message-Id: <20220621043133.7720-1-zhaochengyi@uniontech.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:uniontech.com:qybgforeign:qybgforeign8 X-QQ-Bgrelay: 1 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, 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 When send_request returns an error, session->discover should be released here, so that the next time the program enters avdtp_discover, the -EBUSY error will not be returned. Chengyi (1): avdtp: Free discover when send_request returns error profiles/audio/avdtp.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.20.1