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

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



Since bt_l2cap_create_pdu can return NULL when used under syswq context
the code should always check its result, this also changes the timeout
to have a specific value (RTX maximum timeout) so signalling PDUs still
wait for a buffer to become available.

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