Commit eaad9b8
ipc: Fix IPC message sending with payload already prepared
If the msg->tx_size/data have been prepared by caller and it calls the
function with NULL as data: ipc_msg_send(msg, NULL, false);
then we try to copy from NULL to the msg->tx_data because
msg->tx_data != data is true.
The callers could be fixed as well, but the ipc_msg_send() and
ipc_msg_send_direct() should handle this.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>1 parent 8ac6367 commit eaad9b8
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
| 208 | + | |
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
| 228 | + | |
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| |||
0 commit comments