All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ v2 0/1] mgmt: Fix crash after pair command
@ 2023-12-19  6:28 Vinit Mehta
  2023-12-19  6:28 ` [PATCH BlueZ v2 1/1] " Vinit Mehta
  2024-01-03 21:10 ` [PATCH BlueZ v2 0/1] " patchwork-bot+bluetooth
  0 siblings, 2 replies; 4+ messages in thread
From: Vinit Mehta @ 2023-12-19  6:28 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: vinit.mehta, devyani.godbole, nitin.jadhav

Hello Maintainers

This patch fixes assertion in bluetoothctl client process

After pair command, if the user doesn't provide any input on bluetoothctl
CLI interface after receiving the prompt(yes/no), than subsequent CLI 
command will trigger a call to DBUS library function 
(dbus_message_get_no_reply) with a NULL message pointer which triggers
assertion in DBUS library causing the bluetoothctl process to crash. 
The change is done in confirm_response callback to trigger a DBUS
API error call only if the pending_message pointer is not NULL so 
as to avoid the assertion.

Thank you in advance for your review.

Warm Regards
Vinit Mehta

Vinit Mehta (1):
  mgmt: Fix crash after pair command

 client/agent.c | 15 +++++++++------
 client/mgmt.c  | 12 +++++++++---
 2 files changed, 18 insertions(+), 9 deletions(-)

-- 
2.42.0.windows.2

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

end of thread, other threads:[~2024-01-03 21:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-19  6:28 [PATCH BlueZ v2 0/1] mgmt: Fix crash after pair command Vinit Mehta
2023-12-19  6:28 ` [PATCH BlueZ v2 1/1] " Vinit Mehta
2023-12-19  7:33   ` bluez.test.bot
2024-01-03 21:10 ` [PATCH BlueZ v2 0/1] " patchwork-bot+bluetooth

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.