Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1458878iog; Tue, 14 Jun 2022 06:33:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjnT2kkOXVZWJCo496SmpNpXEPAnKP/VAhwplU+lc5/SO7zjgnETXbFBnCf/XUmdNpHyWx X-Received: by 2002:a17:906:449:b0:711:c975:cfb8 with SMTP id e9-20020a170906044900b00711c975cfb8mr4484120eja.58.1655213604971; Tue, 14 Jun 2022 06:33:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655213604; cv=none; d=google.com; s=arc-20160816; b=vf7fvw4t5FnH0s+pZKeDRWBtJ2TgmU0L9ZMSi9cGg3x3359HNRzHqcdOQdBq6CT4Ip YR6SA9lYEYYV10Isedj3sLme2yzgOb77AuaFu4fWWfgFNj1Er0h0R3Pm1RLDUwkDB9Od 8BRhA7z1Jl2P3UfEXZ7Vnnmq4FcUdDlq8Sdid7u2B/14pzFCmrxbiMz0Tt2+JV++9MSL 3kubfUFbdMW32Fn1+TynA1zr7Juhomzbv1Pkx3xxqbwxKWcxSPnjs2pnzuC08CKKMCRn TYL2J6P3CGD8F8D7tCtYr0f1Mq5IiNnmi+HbjCODWIXdDJwNfsaGUhDv3fuC9PgTsj5G MtPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from:cc :references:to:content-language:subject:user-agent:mime-version:date :message-id; bh=M/bdqJAKamdv2UtDYMUZ15NzYKgduaur1S8vi1yYSpE=; b=DC+1czmEgjiDr8kENG32ExKE744x9StNkcK37XqJ3kk3IKZgYfuQC9jNF8ZUyDmTa5 z1Bu2tGrCIDCwi6gzyvDxdbNuqVtFgnyj/MNhcV8jxztR7niUjF6KEwWZLpUJtIzsRTB Q8j4iNzjJL6sxB5uCH70Hz0yXceHqCyORGDI+Ag0JxVXqKDYsvxJLcnit7QedloLhwop Eb8YNigZMpCrcbJUulEwfLsBj6YkBfm2qEfYxmIihyRDY0Ix5BA+PQg2aX34fLmKuZqI ndeYYQP9XUG7JjLyInj0fIrq2Fe9GovrQDh7LLPa8b9NhoAI/H1H3bacGCX/N8EBGY01 TNnw== 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 f25-20020a056402329900b00434e3f65dbdsi8400172eda.122.2022.06.14.06.32.48; Tue, 14 Jun 2022 06:33:24 -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 S241670AbiFNNVw (ORCPT + 99 others); Tue, 14 Jun 2022 09:21:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232220AbiFNNVv (ORCPT ); Tue, 14 Jun 2022 09:21:51 -0400 Received: from mx1.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D20F3BF84 for ; Tue, 14 Jun 2022 06:21:49 -0700 (PDT) Received: from [192.168.0.2] (ip5f5aeb46.dynamic.kabel-deutschland.de [95.90.235.70]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id 5443661EA192D; Tue, 14 Jun 2022 15:21:46 +0200 (CEST) Message-ID: <698fa316-4328-765b-80f4-b5cee03bcdde@molgen.mpg.de> Date: Tue, 14 Jun 2022 15:21:45 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH] obexd: Fix transfer has been free in transfer_abort_response Content-Language: en-US To: wangyouwan@uniontech.com References: <20220614131549.22054-1-wangyouwan@uniontech.com> Cc: linux-bluetooth@vger.kernel.org From: Paul Menzel In-Reply-To: <20220614131549.22054-1-wangyouwan@uniontech.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,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 Dear Wang, Thank you for your patch. Am 14.06.22 um 15:15 schrieb wangyouwan: Can you please configure your full name in git? git config --global user.name "Wang …" > Breakpoint 7, transfer_new (obex=0x5555555f5b50, opcode=2 '\002', > complete_func=0x555555590c40 , user_data=0x5555555f7000) > at gobex/gobex-transfer.c:254 > 254 gobex/gobex-transfer.c: > (gdb) c > Continuing. […] In addition to the GDB traces, can you please add a sentence, what is going on, and how to reproduce (test setup) that the transfer (`find_transfer(id)`) is NULL? […] > --- > gobex/gobex-transfer.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/gobex/gobex-transfer.c b/gobex/gobex-transfer.c > index c94d018b2..48b1f6962 100644 > --- a/gobex/gobex-transfer.c > +++ b/gobex/gobex-transfer.c > @@ -92,7 +92,9 @@ static void transfer_complete(struct transfer *transfer, GError *err) > g_obex_drop_tx_queue(transfer->obex); > } > > - transfer->complete_func(transfer->obex, err, transfer->user_data); > + if (find_transfer(id) != NULL) > + transfer->complete_func(transfer->obex, err, transfer->user_data); > + > /* Check if the complete_func removed the transfer */ > if (find_transfer(id) == NULL) > return; Kind regards, Paul