2022-06-28 07:50:50

by Youwan Wang

[permalink] [raw]
Subject: [PATCH] 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(-)

diff --git a/gobex/gobex-transfer.c b/gobex/gobex-transfer.c
index c94d018b2..77cbeefcf 100644
--- a/gobex/gobex-transfer.c
+++ b/gobex/gobex-transfer.c
@@ -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);
}

--
2.20.1




2022-06-28 09:47:09

by bluez.test.bot

[permalink] [raw]
Subject: RE: obexd: Fix obex pointer is not null judgment

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