Bluetooth: HCI: Use skb_pull_data to parse Command Complete event
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 1 Dec 2021 18:54:54 +0000 (10:54 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 7 Dec 2021 16:05:49 +0000 (17:05 +0100)
commite3f3a1aea8719ac76bb9443bc3abc975250e1f98
tree2b5d7c704cf6ccec8f4f5f12a356b414ea72f813
parentae61a10d9d46c4a0844c46d0863bf991c4dda66c
Bluetooth: HCI: Use skb_pull_data to parse Command Complete event

This uses skb_pull_data to check the Command Complete events received
have the minimum required length.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_event.c