Skip to content
Commit 6a71ebf6 authored by Luiz Augusto von Dentz's avatar Luiz Augusto von Dentz Committed by Carles Cufí
Browse files

Bluetooth: SMP: Fix invalid access if a buffer cannot be allocated



In certain cases there could be no buffer available which may lead to
NULL being returned by bt_l2cap_create_pdu so instead use
bt_l2cap_create_pdu_timeout to wait with a specific timeout.

Note that this should also ensure the SMP will not be waiting for a
buffer when the remote might have timed out already.

Signed-off-by: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
parent 1af31671
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment