Commit f153935
committed
lib_manager: check context allocation on dram restore
The resume path allocated a library context and immediately wrote
through it without a NULL check, crashing under memory pressure. Check
the allocation and fail the restore gracefully.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>1 parent 4c16908 commit f153935
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
204 | 203 | | |
205 | 204 | | |
206 | 205 | | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
207 | 211 | | |
208 | 212 | | |
209 | 213 | | |
| |||
0 commit comments