* [PATCH] obexd: Fix callback->func =! NULL in the xfer_complete() func
@ 2022-06-13 11:37 wangyouwan
2022-06-13 15:18 ` bluez.test.bot
2022-06-13 18:10 ` [PATCH] " patchwork-bot+bluetooth
0 siblings, 2 replies; 4+ messages in thread
From: wangyouwan @ 2022-06-13 11:37 UTC (permalink / raw)
To: linux-bluetooth; +Cc: wangyouwan
xfer_complete (obex=0x557d242c8cf0, err=0x557d242ca470,
user_data=0x557d242ca300) at obexd/client/transfer.c:659
659 obexd/client/transfer.c:
(gdb) n
661 in obexd/client/transfer.c
(gdb) n
663 in obexd/client/transfer.c
(gdb) p callback->func
$1 = (transfer_callback_t) 0x0
(gdb) n
668 in obexd/client/transfer.c
(gdb) n
671 in obexd/client/transfer.c
(gdb) n
672 in obexd/client/transfer.c
(gdb) n
676 in obexd/client/transfer.c
(gdb) n
677 in obexd/client/transfer.c
(gdb) n
0x0000000000000000 in ?? ()
(gdb) s
Cannot find bounds of current function
(gdb) c
Continuing.
Program received signal SIGSEGV, Segmentation fault.
---
obexd/client/transfer.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
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);
}
--
2.20.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* RE: obexd: Fix callback->func =! NULL in the xfer_complete() func
2022-06-13 11:37 [PATCH] obexd: Fix callback->func =! NULL in the xfer_complete() func wangyouwan
@ 2022-06-13 15:18 ` bluez.test.bot
2022-06-13 18:10 ` [PATCH] " patchwork-bot+bluetooth
1 sibling, 0 replies; 4+ messages in thread
From: bluez.test.bot @ 2022-06-13 15:18 UTC (permalink / raw)
To: linux-bluetooth, wangyouwan
[-- Attachment #1: Type: text/plain, Size: 995 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=649838
---Test result---
Test Summary:
CheckPatch PASS 0.78 seconds
GitLint PASS 0.51 seconds
Prep - Setup ELL PASS 41.52 seconds
Build - Prep PASS 0.47 seconds
Build - Configure PASS 8.00 seconds
Build - Make PASS 1212.26 seconds
Make Check PASS 11.20 seconds
Make Check w/Valgrind PASS 438.49 seconds
Make Distcheck PASS 228.62 seconds
Build w/ext ELL - Configure PASS 8.06 seconds
Build w/ext ELL - Make PASS 1178.65 seconds
Incremental Build with patchesPASS 0.00 seconds
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] obexd: Fix callback->func =! NULL in the xfer_complete() func
2022-06-13 11:37 [PATCH] obexd: Fix callback->func =! NULL in the xfer_complete() func wangyouwan
2022-06-13 15:18 ` bluez.test.bot
@ 2022-06-13 18:10 ` patchwork-bot+bluetooth
1 sibling, 0 replies; 4+ messages in thread
From: patchwork-bot+bluetooth @ 2022-06-13 18:10 UTC (permalink / raw)
To: wangyouwan; +Cc: linux-bluetooth
Hello:
This patch was applied to bluetooth/bluez.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Mon, 13 Jun 2022 19:37:13 +0800 you wrote:
> xfer_complete (obex=0x557d242c8cf0, err=0x557d242ca470,
> user_data=0x557d242ca300) at obexd/client/transfer.c:659
> 659 obexd/client/transfer.c:
> (gdb) n
> 661 in obexd/client/transfer.c
> (gdb) n
> 663 in obexd/client/transfer.c
> (gdb) p callback->func
> $1 = (transfer_callback_t) 0x0
> (gdb) n
> 668 in obexd/client/transfer.c
> (gdb) n
> 671 in obexd/client/transfer.c
> (gdb) n
> 672 in obexd/client/transfer.c
> (gdb) n
> 676 in obexd/client/transfer.c
> (gdb) n
> 677 in obexd/client/transfer.c
> (gdb) n
> 0x0000000000000000 in ?? ()
> (gdb) s
> Cannot find bounds of current function
> (gdb) c
> Continuing.
>
> [...]
Here is the summary with links:
- obexd: Fix callback->func =! NULL in the xfer_complete() func
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=c6d3bcf3d005
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] obexd: Fix callback->func =! NULL in the xfer_complete() func
@ 2022-06-13 11:22 wangyouwan
0 siblings, 0 replies; 4+ messages in thread
From: wangyouwan @ 2022-06-13 11:22 UTC (permalink / raw)
To: linux-bluetooth; +Cc: wangyouwan
xfer_complete (obex=0x557d242c8cf0, err=0x557d242ca470,
user_data=0x557d242ca300) at obexd/client/transfer.c:659
659 obexd/client/transfer.c: 没有那个文件或目录.
(gdb) n
661 in obexd/client/transfer.c
(gdb) n
663 in obexd/client/transfer.c
(gdb) p callback->func
$1 = (transfer_callback_t) 0x0
(gdb) n
668 in obexd/client/transfer.c
(gdb) n
671 in obexd/client/transfer.c
(gdb) n
672 in obexd/client/transfer.c
(gdb) n
676 in obexd/client/transfer.c
(gdb) n
677 in obexd/client/transfer.c
(gdb) n
0x0000000000000000 in ?? ()
(gdb) s
Cannot find bounds of current function
(gdb) c
Continuing.
Program received signal SIGSEGV, Segmentation fault.
---
obexd/client/transfer.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
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);
}
--
2.20.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-06-13 19:42 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-13 11:37 [PATCH] obexd: Fix callback->func =! NULL in the xfer_complete() func wangyouwan
2022-06-13 15:18 ` bluez.test.bot
2022-06-13 18:10 ` [PATCH] " patchwork-bot+bluetooth
-- strict thread matches above, loose matches on Subject: below --
2022-06-13 11:22 wangyouwan
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.