Commit 0d9b5ec
ipc: ipc4: harden ipc_comp_disconnect() against invalid sink
Check the provided sink actually is connected to the buffer,
before proceeding to free the buffer.
This protects against an invalid IPC sent by the host.
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>1 parent c72905e commit 0d9b5ec
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
920 | 920 | | |
921 | 921 | | |
922 | 922 | | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
923 | 935 | | |
924 | 936 | | |
925 | 937 | | |
| |||
0 commit comments