Commit 2f5a2ce
Arto Kinnunen
Remove recursion from MAC layer (ARMmbed#1826)
Failing MCPS write request is calling callback function directly and
a caller would then trigger a new MCPS write request. This recursion
can cause stack overflow in some conditions.
Change failing data request to use event queue when returning status
back to caller.1 parent 06e3243 commit 2f5a2ce
File tree
3 files changed
+15
-20
lines changed- source/MAC/IEEE802_15_4
- test/nanostack/unittest/mac/mac_mcps_sap
3 files changed
+15
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
149 | 148 | | |
150 | 149 | | |
151 | 150 | | |
| |||
1123 | 1122 | | |
1124 | 1123 | | |
1125 | 1124 | | |
1126 | | - | |
1127 | | - | |
| 1125 | + | |
| 1126 | + | |
1128 | 1127 | | |
1129 | 1128 | | |
1130 | 1129 | | |
| |||
1146 | 1145 | | |
1147 | 1146 | | |
1148 | 1147 | | |
1149 | | - | |
1150 | | - | |
| 1148 | + | |
| 1149 | + | |
1151 | 1150 | | |
1152 | 1151 | | |
1153 | 1152 | | |
| |||
1357 | 1356 | | |
1358 | 1357 | | |
1359 | 1358 | | |
1360 | | - | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
1361 | 1362 | | |
1362 | 1363 | | |
1363 | 1364 | | |
| |||
1904 | 1905 | | |
1905 | 1906 | | |
1906 | 1907 | | |
1907 | | - | |
1908 | | - | |
1909 | | - | |
1910 | | - | |
1911 | | - | |
1912 | | - | |
1913 | | - | |
1914 | | - | |
1915 | | - | |
1916 | | - | |
1917 | | - | |
| 1908 | + | |
| 1909 | + | |
| 1910 | + | |
1918 | 1911 | | |
1919 | 1912 | | |
1920 | 1913 | | |
| |||
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2463 | 2463 | | |
2464 | 2464 | | |
2465 | 2465 | | |
2466 | | - | |
| 2466 | + | |
| 2467 | + | |
2467 | 2468 | | |
2468 | 2469 | | |
2469 | 2470 | | |
2470 | | - | |
2471 | 2471 | | |
2472 | 2472 | | |
2473 | 2473 | | |
| |||
2477 | 2477 | | |
2478 | 2478 | | |
2479 | 2479 | | |
2480 | | - | |
| 2480 | + | |
| 2481 | + | |
2481 | 2482 | | |
2482 | 2483 | | |
2483 | 2484 | | |
| |||
0 commit comments