]> www.infradead.org Git - users/dwmw2/linux.git/commit
Bluetooth: hci_conn: Remove alloc from critical section
authorIulia Tanasescu <iulia.tanasescu@nxp.com>
Mon, 11 Nov 2024 11:47:07 +0000 (13:47 +0200)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 14 Nov 2024 20:39:40 +0000 (15:39 -0500)
commit25ab2db3e60e0e84d7cdc740ea6ae3c10fe61eaa
tree6d935062d4134caad83eba0cf283fa7a4f3c0f41
parentdc26097bdb864a0d5955b9a25e43376ffc1af99b
Bluetooth: hci_conn: Remove alloc from critical section

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: Iulia Tanasescu <iulia.tanasescu@nxp.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/hci_conn.c