Commit 1236f9d
IPC4: Handle duplicate component IDs
In the SOF scheme, component IDs are allocated by the host driver. So
they need to be validated before use when modifying the global
component list to prevent duplicate entries from being inserted.
IPC3 was doing this already. IPC4 had copied the form of the code in
one spot, but had missed that the ID is global across types and was
only checking for duplicate pipelines.
Signed-off-by: Andy Ross <andyross@google.com>1 parent 320a932 commit 1236f9d
1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
182 | | - | |
| 181 | + | |
183 | 182 | | |
184 | | - | |
| 183 | + | |
185 | 184 | | |
186 | 185 | | |
187 | 186 | | |
| |||
748 | 747 | | |
749 | 748 | | |
750 | 749 | | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
751 | 757 | | |
752 | 758 | | |
753 | 759 | | |
| |||
0 commit comments