Message ID | 20220712130103.31514-1-peter.ujfalusi@linux.intel.com |
---|---|
State | Accepted |
Commit | d5bd47f3ca124058a8e87eae4508afeda2132611 |
Headers | show |
Series | ASoC: SOF: ipc3-topology: Prevent double freeing of ipc_control_data via load_bytes | expand |
diff --git a/sound/soc/sof/ipc3-topology.c b/sound/soc/sof/ipc3-topology.c index 9448d5338423..b2cc046b9f60 100644 --- a/sound/soc/sof/ipc3-topology.c +++ b/sound/soc/sof/ipc3-topology.c @@ -1644,6 +1644,7 @@ static int sof_ipc3_control_load_bytes(struct snd_sof_dev *sdev, struct snd_sof_ return 0; err: kfree(scontrol->ipc_control_data); + scontrol->ipc_control_data = NULL; return ret; }