Commit e79442a
committed
module: cadence_ipc4: Fix dereferencing of uninitialized pointer
setup_cfg can be in theory undefined when no module_data is provided,
initialize it to NULL and check for NULL pointer before accessing to
it's member.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>1 parent 7966ba4 commit e79442a
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
| 220 | + | |
220 | 221 | | |
221 | | - | |
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
| |||
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
311 | | - | |
| 311 | + | |
| 312 | + | |
312 | 313 | | |
313 | 314 | | |
314 | 315 | | |
| |||
0 commit comments