From: Andrei Emeltchenko <[email protected]>
When AVCTP session was created uinput was zero which is valid file
descriptor and that was conflicting with socketpair() fds.
---
android/avctp.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/android/avctp.c b/android/avctp.c
index 1e414d1..9bfb191 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,
--
1.8.3.2