summaryrefslogtreecommitdiffstats
path: root/audio/unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/unix.c')
-rw-r--r--audio/unix.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/audio/unix.c b/audio/unix.c
index d980861f..cee56f8a 100644
--- a/audio/unix.c
+++ b/audio/unix.c
@@ -574,7 +574,8 @@ static void cfg_event(struct unix_client *client, struct ipc_packet *pkt, int le
if (!manager_find_device(&bdaddr, NULL, FALSE)) {
if (!bacmp(&bdaddr, BDADDR_ANY))
goto failed;
- manager_create_device(&bdaddr, create_cb, client);
+ if (!manager_create_device(&bdaddr, create_cb, client))
+ goto failed;
return;
}