Commit 25ab2db
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>1 parent dc26097 commit 25ab2db
1 file changed
+10
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2079 | 2079 | | |
2080 | 2080 | | |
2081 | 2081 | | |
2082 | | - | |
| 2082 | + | |
2083 | 2083 | | |
2084 | 2084 | | |
2085 | 2085 | | |
| |||
2108 | 2108 | | |
2109 | 2109 | | |
2110 | 2110 | | |
2111 | | - | |
2112 | | - | |
2113 | | - | |
2114 | | - | |
2115 | | - | |
2116 | | - | |
2117 | | - | |
2118 | | - | |
2119 | | - | |
2120 | | - | |
2121 | | - | |
2122 | | - | |
2123 | | - | |
| 2111 | + | |
| 2112 | + | |
| 2113 | + | |
| 2114 | + | |
| 2115 | + | |
| 2116 | + | |
| 2117 | + | |
2124 | 2118 | | |
2125 | 2119 | | |
2126 | 2120 | | |
| |||
2131 | 2125 | | |
2132 | 2126 | | |
2133 | 2127 | | |
2134 | | - | |
| 2128 | + | |
2135 | 2129 | | |
2136 | 2130 | | |
2137 | 2131 | | |
2138 | 2132 | | |
2139 | | - | |
| 2133 | + | |
2140 | 2134 | | |
2141 | 2135 | | |
2142 | 2136 | | |
2143 | | - | |
2144 | | - | |
2145 | 2137 | | |
2146 | 2138 | | |
2147 | 2139 | | |
| |||
0 commit comments