Commit 69a7486
committed
ipc: Fix ipc_msg_send() 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() should handle
this.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>1 parent cfa5f02 commit 69a7486
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
| 228 | + | |
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| |||
0 commit comments