Return-Path: From: Andrei Emeltchenko To: linux-bluetooth@vger.kernel.org Subject: [PATCH] android/avctp: Set uinput to invalid fd when creating session Date: Mon, 24 Feb 2014 15:12:52 +0200 Message-Id: <1393247572-1244-1-git-send-email-Andrei.Emeltchenko.news@gmail.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: From: Andrei Emeltchenko 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