Message ID | 20220613112242.9407-1-wangyouwan@uniontech.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | obexd: Fix callback->func =! NULL in the xfer_complete() func | expand |
Context | Check | Description |
---|---|---|
tedd_an/pre-ci_am | success | Success |
tedd_an/checkpatch | success | Checkpatch PASS |
tedd_an/gitlint | success | Gitlint PASS |
tedd_an/setupell | success | Setup ELL PASS |
tedd_an/buildprep | success | Build Prep PASS |
tedd_an/build | success | Build Configuration PASS |
tedd_an/makecheck | success | Make Check PASS |
tedd_an/makecheckvalgrind | success | Make Check PASS |
tedd_an/makedistcheck | success | Make Distcheck PASS |
tedd_an/build_extell | success | Build External ELL PASS |
tedd_an/build_extell_make | success | Build Make with External ELL PASS |
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=649824 ---Test result--- Test Summary: CheckPatch PASS 0.66 seconds GitLint PASS 0.46 seconds Prep - Setup ELL PASS 54.03 seconds Build - Prep PASS 0.62 seconds Build - Configure PASS 10.20 seconds Build - Make PASS 1870.58 seconds Make Check PASS 13.00 seconds Make Check w/Valgrind PASS 552.84 seconds Make Distcheck PASS 292.56 seconds Build w/ext ELL - Configure PASS 10.64 seconds Build w/ext ELL - Make PASS 1821.67 seconds Incremental Build with patchesPASS 0.00 seconds --- Regards, Linux Bluetooth
diff --git a/obexd/client/transfer.c b/obexd/client/transfer.c index dccce03b4..a7a85a0c0 100644 --- a/obexd/client/transfer.c +++ b/obexd/client/transfer.c @@ -666,7 +666,10 @@ static void xfer_complete(GObex *obex, GError *err, gpointer user_data) else transfer_set_status(transfer, TRANSFER_STATUS_COMPLETE); - if (callback) + if (callback == NULL) + return; + + if (callback->func) callback->func(transfer, err, callback->data); }