Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1b197574 authored by Loic Poulain's avatar Loic Poulain Committed by Marcel Holtmann
Browse files

Bluetooth: hci_intel: Show error in case of invalid LPM packet size



Don't hide this packet size error.

Signed-off-by: default avatarLoic Poulain <loic.poulain@intel.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 74cdad37
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -1010,7 +1010,10 @@ static int intel_recv_lpm(struct hci_dev *hdev, struct sk_buff *skb)

	switch (lpm->opcode) {
	case LPM_OP_TX_NOTIFY:
		if (lpm->dlen)
		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: