diff options
-rw-r--r-- | net/bluetooth/mgmt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index 8934343be0ea..b127b88015c9 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c | |||
@@ -3109,6 +3109,9 @@ int mgmt_disconnect_failed(struct hci_dev *hdev, bdaddr_t *bdaddr, | |||
3109 | struct pending_cmd *cmd; | 3109 | struct pending_cmd *cmd; |
3110 | int err; | 3110 | int err; |
3111 | 3111 | ||
3112 | mgmt_pending_foreach(MGMT_OP_UNPAIR_DEVICE, hdev, unpair_device_rsp, | ||
3113 | hdev); | ||
3114 | |||
3112 | cmd = mgmt_pending_find(MGMT_OP_DISCONNECT, hdev); | 3115 | cmd = mgmt_pending_find(MGMT_OP_DISCONNECT, hdev); |
3113 | if (!cmd) | 3116 | if (!cmd) |
3114 | return -ENOENT; | 3117 | return -ENOENT; |
@@ -3121,8 +3124,6 @@ int mgmt_disconnect_failed(struct hci_dev *hdev, bdaddr_t *bdaddr, | |||
3121 | 3124 | ||
3122 | mgmt_pending_remove(cmd); | 3125 | mgmt_pending_remove(cmd); |
3123 | 3126 | ||
3124 | mgmt_pending_foreach(MGMT_OP_UNPAIR_DEVICE, hdev, unpair_device_rsp, | ||
3125 | hdev); | ||
3126 | return err; | 3127 | return err; |
3127 | } | 3128 | } |
3128 | 3129 | ||