Fix garbage return value in send_req

This commit is contained in:
Szymon Janc 2011-05-09 15:29:25 +02:00 committed by Johan Hedberg
parent d6ee6f16e6
commit 906879b788

View File

@ -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);
}