mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-26 05:34:23 +08:00
Fix garbage return value in send_req
This commit is contained in:
parent
d6ee6f16e6
commit
906879b788
@ -2652,8 +2652,10 @@ static int send_req(struct avdtp *session, gboolean priority,
|
||||
|
||||
if (session->state == AVDTP_SESSION_STATE_DISCONNECTED) {
|
||||
session->io = l2cap_connect(session);
|
||||
if (!session->io)
|
||||
if (!session->io) {
|
||||
err = -EIO;
|
||||
goto failed;
|
||||
}
|
||||
avdtp_set_state(session, AVDTP_SESSION_STATE_CONNECTING);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user