diff options
Diffstat (limited to 'net/nfc')
-rw-r--r-- | net/nfc/hci/command.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/nfc/hci/command.c b/net/nfc/hci/command.c index 677d24bb70f8..91df487aa0a9 100644 --- a/net/nfc/hci/command.c +++ b/net/nfc/hci/command.c | |||
@@ -345,6 +345,9 @@ int nfc_hci_connect_gate(struct nfc_hci_dev *hdev, u8 dest_host, u8 dest_gate, | |||
345 | 345 | ||
346 | pr_debug("\n"); | 346 | pr_debug("\n"); |
347 | 347 | ||
348 | if (hdev->gate2pipe[dest_gate] == NFC_HCI_DO_NOT_CREATE_PIPE) | ||
349 | return 0; | ||
350 | |||
348 | if (hdev->gate2pipe[dest_gate] != NFC_HCI_INVALID_PIPE) | 351 | if (hdev->gate2pipe[dest_gate] != NFC_HCI_INVALID_PIPE) |
349 | return -EADDRINUSE; | 352 | return -EADDRINUSE; |
350 | 353 | ||