Commit 1ec0240
committed
sched/group: prevent mm_free() of static g_kthread_group
When building for small systems with CONFIG_DEFAULT_SMALL=y, this
implies CONFIG_DISABLE_PTHREAD and thus HAVE_GROUP_MEMBERS is
undefined. When the AppBringUp task finishes, it will in this case
try to free g_kthread_group which is obviously not possible.
Add a guard with a new flag "GROUP_FLAG_STATIC" which indicates
the memory allocation type. Before freeing, check for this flag.
Signed-off-by: Maarten Zanders <maarten@zanders.be>1 parent ebc75b0 commit 1ec0240
3 files changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
| 121 | + | |
121 | 122 | | |
122 | 123 | | |
123 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| 134 | + | |
134 | 135 | | |
135 | 136 | | |
136 | 137 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
241 | | - | |
| 241 | + | |
| 242 | + | |
242 | 243 | | |
243 | 244 | | |
244 | 245 | | |
| |||
0 commit comments