aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/bluetooth/mgmt.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index 7dd2de1c2152..e5e865d8afa8 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -1590,6 +1590,11 @@ static int unpair_device(struct sock *sk, struct hci_dev *hdev, void *data,
1590 MGMT_STATUS_INVALID_PARAMS, 1590 MGMT_STATUS_INVALID_PARAMS,
1591 &rp, sizeof(rp)); 1591 &rp, sizeof(rp));
1592 1592
1593 if (cp->disconnect != 0x00 && cp->disconnect != 0x01)
1594 return cmd_complete(sk, hdev->id, MGMT_OP_UNPAIR_DEVICE,
1595 MGMT_STATUS_INVALID_PARAMS,
1596 &rp, sizeof(rp));
1597
1593 hci_dev_lock(hdev); 1598 hci_dev_lock(hdev);
1594 1599
1595 if (!hdev_is_powered(hdev)) { 1600 if (!hdev_is_powered(hdev)) {