public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ] media: fix pac_config_cb() error code return
@ 2025-09-18 17:19 Pauli Virtanen
  2025-09-18 18:10 ` Pauli Virtanen
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Pauli Virtanen @ 2025-09-18 17:19 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Pauli Virtanen

Fixes: a887b1a1b91f ("audio: Add support for specific error codes for A2DP configuration")
---
 profiles/audio/media.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/profiles/audio/media.c b/profiles/audio/media.c
index 332f643bb..deb321e6c 100644
--- a/profiles/audio/media.c
+++ b/profiles/audio/media.c
@@ -1110,7 +1110,7 @@ static void pac_config_cb(struct media_endpoint *endpoint, void *ret, int size,
 	if (!transport)
 		return;
 
-	data->cb(data->stream, error_code == 0 ? 0 : -EINVAL);
+	data->cb(data->stream, (error_code && *error_code == 0) ? 0 : -EINVAL);
 }
 
 static struct media_transport *pac_ucast_config(struct bt_bap_stream *stream,
-- 
2.51.0


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

end of thread, other threads:[~2025-09-24 13:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-18 17:19 [PATCH BlueZ] media: fix pac_config_cb() error code return Pauli Virtanen
2025-09-18 18:10 ` Pauli Virtanen
2025-09-24 13:22   ` Luiz Augusto von Dentz
2025-09-18 18:48 ` [BlueZ] " bluez.test.bot
2025-09-19 19:10 ` [PATCH BlueZ] " 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