Commit fe81c26d authored by Iulia Tanasescu's avatar Iulia Tanasescu Committed by Greg Kroah-Hartman
Browse files

Bluetooth: hci_conn: Remove alloc from critical section



[ Upstream commit 25ab2db3 ]

This removes the kzalloc memory allocation inside critical section in
create_pa_sync, fixing the following message that appears when the kernel
is compiled with CONFIG_DEBUG_ATOMIC_SLEEP enabled:

BUG: sleeping function called from invalid context at
include/linux/sched/mm.h:321

Signed-off-by: default avatarIulia Tanasescu <iulia.tanasescu@nxp.com>
Signed-off-by: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Stable-dep-of: 6d0417e4 ("Bluetooth: hci_conn: Fix not setting conn_timeout for Broadcast Receiver")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 3104b7d5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment