mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 21:51:40 +00:00
Bluetooth: hci_intel: Show error in case of invalid LPM packet size
Don't hide this packet size error. Signed-off-by: Loic Poulain <loic.poulain@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:
parent
74cdad37cd
commit
1b1975749f
@ -1010,8 +1010,11 @@ static int intel_recv_lpm(struct hci_dev *hdev, struct sk_buff *skb)
|
||||
|
||||
switch (lpm->opcode) {
|
||||
case LPM_OP_TX_NOTIFY:
|
||||
if (lpm->dlen)
|
||||
intel_recv_lpm_notify(hdev, lpm->data[0]);
|
||||
if (lpm->dlen < 1) {
|
||||
bt_dev_err(hu->hdev, "Invalid LPM notification packet");
|
||||
break;
|
||||
}
|
||||
intel_recv_lpm_notify(hdev, lpm->data[0]);
|
||||
break;
|
||||
case LPM_OP_SUSPEND_ACK:
|
||||
set_bit(STATE_SUSPENDED, &intel->flags);
|
||||
|
Loading…
Reference in New Issue
Block a user