linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] obexd: fix small probability problem
@ 2022-07-07 12:43 Youwan Wang
  2022-07-07 13:28 ` bluez.test.bot
  0 siblings, 1 reply; 2+ messages in thread
From: Youwan Wang @ 2022-07-07 12:43 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Youwan Wang

Need to consider the case where err is not released
---
 gobex/gobex.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/gobex/gobex.c b/gobex/gobex.c
index e9b89cead..bc4d52551 100644
--- a/gobex/gobex.c
+++ b/gobex/gobex.c
@@ -1140,8 +1140,12 @@ static void handle_response(GObex *obex, GError *err, GObexPacket *rsp)
 		p->rsp_func(obex, err, rsp, p->rsp_data);
 
 		/* Check if user callback removed the request */
-		if (!final_rsp && p != obex->pending_req)
+		if (!final_rsp && p != obex->pending_req) {
+			if (p->cancelled)
+				g_error_free(err);
+
 			return;
+		}
 	}
 
 	if (p->cancelled)
-- 
2.20.1




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* RE: obexd: fix small probability problem
  2022-07-07 12:43 [PATCH] obexd: fix small probability problem Youwan Wang
@ 2022-07-07 13:28 ` bluez.test.bot
  0 siblings, 0 replies; 2+ messages in thread
From: bluez.test.bot @ 2022-07-07 13:28 UTC (permalink / raw)
  To: linux-bluetooth, wangyouwan

[-- Attachment #1: Type: text/plain, Size: 1047 bytes --]

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=657391

---Test result---

Test Summary:
CheckPatch                    PASS      1.35 seconds
GitLint                       PASS      0.94 seconds
Prep - Setup ELL              PASS      26.77 seconds
Build - Prep                  PASS      0.80 seconds
Build - Configure             PASS      8.51 seconds
Build - Make                  PASS      932.41 seconds
Make Check                    PASS      11.63 seconds
Make Check w/Valgrind         PASS      283.30 seconds
Make Distcheck                PASS      230.61 seconds
Build w/ext ELL - Configure   PASS      8.65 seconds
Build w/ext ELL - Make        PASS      81.16 seconds
Incremental Build w/ patches  PASS      0.00 seconds
Scan Build                    PASS      491.14 seconds



---
Regards,
Linux Bluetooth


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-07-07 13:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-07 12:43 [PATCH] obexd: fix small probability problem Youwan Wang
2022-07-07 13:28 ` bluez.test.bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).