summaryrefslogtreecommitdiffstats
path: root/audio/avdtp.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/avdtp.c')
-rw-r--r--audio/avdtp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/audio/avdtp.c b/audio/avdtp.c
index 9da8730f..db5f4ef4 100644
--- a/audio/avdtp.c
+++ b/audio/avdtp.c
@@ -1473,9 +1473,10 @@ static int send_req(struct avdtp *session, gboolean priority,
/* FIXME: Should we retry to send if the buffer
was not totally sent or in case of EINTR? */
- err = avdtp_send(session, req->msg, req->msg_size);
- if (err < 0)
+ if (!avdtp_send(session, req->msg, req->msg_size)) {
+ err = -EIO;
goto failed;
+ }
session->req = req;