diff options
-rw-r--r-- | net/bluetooth/mgmt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index cd758994b02f..bc04c444c98e 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c | |||
@@ -2703,6 +2703,8 @@ done: | |||
2703 | 2703 | ||
2704 | static bool ltk_is_valid(struct mgmt_ltk_info *key) | 2704 | static bool ltk_is_valid(struct mgmt_ltk_info *key) |
2705 | { | 2705 | { |
2706 | if (key->authenticated != 0x00 && key->authenticated != 0x01) | ||
2707 | return false; | ||
2706 | if (key->master != 0x00 && key->master != 0x01) | 2708 | if (key->master != 0x00 && key->master != 0x01) |
2707 | return false; | 2709 | return false; |
2708 | return true; | 2710 | return true; |