linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH BlueZ 0/1] bap: Fix crash in bap_bcast_remove
@ 2024-07-16  8:11 Iulia Tanasescu
  2024-07-16  8:11 ` [PATCH BlueZ 1/1] " Iulia Tanasescu
  2024-07-18 18:30 ` [PATCH BlueZ 0/1] " patchwork-bot+bluetooth
  0 siblings, 2 replies; 4+ messages in thread
From: Iulia Tanasescu @ 2024-07-16  8:11 UTC (permalink / raw)
  To: linux-bluetooth
  Cc: claudia.rosu, mihai-octavian.urzica, vlad.pruteanu,
	andrei.istodorescu, luiz.dentz, Iulia Tanasescu

This adds a check for the PA request dequeued in bap_bcast_remove,
to avoid accessing a member within a NULL pointer.

Iulia Tanasescu (1):
  bap: Fix crash in bap_bcast_remove

 profiles/audio/bap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


base-commit: 73266377b0185c56c921b8cece257df428612d73
-- 
2.39.2


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

* [PATCH BlueZ 1/1] bap: Fix crash in bap_bcast_remove
  2024-07-16  8:11 [PATCH BlueZ 0/1] bap: Fix crash in bap_bcast_remove Iulia Tanasescu
@ 2024-07-16  8:11 ` Iulia Tanasescu
  2024-07-16  9:46   ` bluez.test.bot
  2024-07-18 18:30 ` [PATCH BlueZ 0/1] " patchwork-bot+bluetooth
  1 sibling, 1 reply; 4+ messages in thread
From: Iulia Tanasescu @ 2024-07-16  8:11 UTC (permalink / raw)
  To: linux-bluetooth
  Cc: claudia.rosu, mihai-octavian.urzica, vlad.pruteanu,
	andrei.istodorescu, luiz.dentz, Iulia Tanasescu

This adds a check for the PA request dequeued in bap_bcast_remove,
to avoid accessing a member within a NULL pointer.
---
 profiles/audio/bap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c
index afa938091..16c02524f 100644
--- a/profiles/audio/bap.c
+++ b/profiles/audio/bap.c
@@ -3194,7 +3194,7 @@ static void bap_bcast_remove(struct btd_service *service)
 	 */
 	req = queue_remove_if(data->adapter->bcast_pa_requests,
 						match_service, service);
-	if (req->io_id) {
+	if (req && req->io_id) {
 		g_source_remove(req->io_id);
 		req->io_id = 0;
 	}
-- 
2.39.2


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

* RE: bap: Fix crash in bap_bcast_remove
  2024-07-16  8:11 ` [PATCH BlueZ 1/1] " Iulia Tanasescu
@ 2024-07-16  9:46   ` bluez.test.bot
  0 siblings, 0 replies; 4+ messages in thread
From: bluez.test.bot @ 2024-07-16  9:46 UTC (permalink / raw)
  To: linux-bluetooth, iulia.tanasescu

[-- Attachment #1: Type: text/plain, Size: 949 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=871594

---Test result---

Test Summary:
CheckPatch                    PASS      0.41 seconds
GitLint                       PASS      0.30 seconds
BuildEll                      PASS      24.97 seconds
BluezMake                     PASS      1753.70 seconds
MakeCheck                     PASS      13.13 seconds
MakeDistcheck                 PASS      178.55 seconds
CheckValgrind                 PASS      252.50 seconds
CheckSmatch                   PASS      358.86 seconds
bluezmakeextell               PASS      121.95 seconds
IncrementalBuild              PASS      1489.90 seconds
ScanBuild                     PASS      1025.78 seconds



---
Regards,
Linux Bluetooth


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

* Re: [PATCH BlueZ 0/1] bap: Fix crash in bap_bcast_remove
  2024-07-16  8:11 [PATCH BlueZ 0/1] bap: Fix crash in bap_bcast_remove Iulia Tanasescu
  2024-07-16  8:11 ` [PATCH BlueZ 1/1] " Iulia Tanasescu
@ 2024-07-18 18:30 ` patchwork-bot+bluetooth
  1 sibling, 0 replies; 4+ messages in thread
From: patchwork-bot+bluetooth @ 2024-07-18 18:30 UTC (permalink / raw)
  To: Iulia Tanasescu
  Cc: linux-bluetooth, claudia.rosu, mihai-octavian.urzica,
	vlad.pruteanu, andrei.istodorescu, luiz.dentz

Hello:

This patch was applied to bluetooth/bluez.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:

On Tue, 16 Jul 2024 11:11:30 +0300 you wrote:
> This adds a check for the PA request dequeued in bap_bcast_remove,
> to avoid accessing a member within a NULL pointer.
> 
> Iulia Tanasescu (1):
>   bap: Fix crash in bap_bcast_remove
> 
>  profiles/audio/bap.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> [...]

Here is the summary with links:
  - [BlueZ,1/1] bap: Fix crash in bap_bcast_remove
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=0bad3d5cbea8

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

end of thread, other threads:[~2024-07-18 18:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-16  8:11 [PATCH BlueZ 0/1] bap: Fix crash in bap_bcast_remove Iulia Tanasescu
2024-07-16  8:11 ` [PATCH BlueZ 1/1] " Iulia Tanasescu
2024-07-16  9:46   ` bluez.test.bot
2024-07-18 18:30 ` [PATCH BlueZ 0/1] " patchwork-bot+bluetooth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).