Skip to contentSkip to conversation

obexd: Fix obex pointer is not null judgment

PATCH In review Youwan Wang 2 participants 2 messages Jun 28, 2022 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 obexd: Fix obex pointer is not null judgment

Judge that the obex pointer is not null before
OBEX release

---
 gobex/gobex-transfer.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
gobex/gobex-transfer.c +2 -1
index c94d018b2..77cbeefcf 100644
@@ -63,8 +63,9 @@ static void transfer_free(struct transfer *transfer)
 	if (transfer->abort_id > 0)
 		g_obex_remove_request_function(transfer->obex,
 							transfer->abort_id);
+	if (transfer->obex)
+		g_obex_unref(transfer->obex);
 
-	g_obex_unref(transfer->obex);
 	g_free(transfer);
 }
 
Signature · 1 line
2.20.1
#1 lore raw

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=654468

---Test result---

Test Summary:

CheckPatch                    PASS      1.47 seconds
GitLint                       PASS      1.01 seconds
Prep - Setup ELL              PASS      48.67 seconds
Build - Prep                  PASS      0.69 seconds
Build - Configure             PASS      9.53 seconds
Build - Make                  PASS      1402.89 seconds
Make Check                    PASS      12.73 seconds
Make Check w/Valgrind         PASS      500.51 seconds
Make Distcheck                PASS      264.83 seconds
Build w/ext ELL - Configure   PASS      10.05 seconds
Build w/ext ELL - Make        PASS      1409.61 seconds
Incremental Build with patchesPASS      0.00 seconds

---
Regards,
Linux Bluetooth