Commit ddedd0a
committed
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 3f7738d commit ddedd0a
1 file changed
Lines changed: 21 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 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
923 | 944 | | |
924 | 945 | | |
925 | 946 | | |
| |||
0 commit comments