Skip to content
Commit ba17bb62 authored by Radoslaw Biernacki's avatar Radoslaw Biernacki Committed by Marcel Holtmann
Browse files

Bluetooth: Fix skb allocation in mgmt_remote_name() & mgmt_device_connected()



This patch fixes skb allocation, as lack of space for ev might push skb
tail beyond its end.
Also introduce eir_precalc_len() that can be used instead of magic
numbers for similar eir operations on skb.

Fixes: cf1bce1d ("Bluetooth: mgmt: Make use of mgmt_send_event_skb in MGMT_EV_DEVICE_FOUND")
Fixes: e9674143 ("Bluetooth: mgmt: Make use of mgmt_send_event_skb in MGMT_EV_DEVICE_CONNECTED")
Signed-off-by: default avatarAngela Czubak <acz@semihalf.com>
Signed-off-by: default avatarMarek Maslanka <mm@semihalf.com>
Signed-off-by: default avatarRadoslaw Biernacki <rad@semihalf.com>
Signed-off-by: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
parent a6fbb2bf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment