diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2014-02-24 15:25:18 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-02-24 17:02:11 +0100 |
commit | 6f51c94e273aadadf9dad1acf795ec0a0b39e38c (patch) | |
tree | 451d2dfb5bd3f427d772bab1786000196796ee39 /android/avctp.c | |
parent | 26d58e7767291469ab8bee4ba4a7624f9c48687e (diff) | |
download | bluez-6f51c94e273aadadf9dad1acf795ec0a0b39e38c.tar.gz |
android/avctp: Set uinput to invalid fd when creating session
When AVCTP session was created uinput was zero which is valid file
descriptor and that was conflicting with socketpair() fds.
Diffstat (limited to 'android/avctp.c')
-rw-r--r-- | android/avctp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/android/avctp.c b/android/avctp.c index 1e414d1cb..9bfb191c0 100644 --- a/android/avctp.c +++ b/android/avctp.c @@ -1414,6 +1414,7 @@ struct avctp *avctp_new(int fd, size_t imtu, size_t omtu, uint16_t version) return NULL; } + session->uinput = -1; session->control = control; session->passthrough_id = avctp_register_pdu_handler(session, AVC_OP_PASSTHROUGH, |