diff options
author | Mark Brown <broonie@kernel.org> | 2019-12-25 17:51:43 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-12-25 17:51:43 +0000 |
commit | a82cf72f94af1135f2edde0a244499af390f333a (patch) | |
tree | ef49c313ce4450e836c4166035d8c276dd977e36 /sound/soc/sof/ipc.c | |
parent | bb9ee1eacb2dfcdf419f14c739b866c3eba4dc1f (diff) | |
parent | dcf08d0f8f09081b16f69071dd55d51d5e964e84 (diff) |
Merge branch 'for-5.5' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-5.6
Diffstat (limited to 'sound/soc/sof/ipc.c')
-rw-r--r-- | sound/soc/sof/ipc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/sof/ipc.c b/sound/soc/sof/ipc.c index 6186c7ff0447..b63fc529b456 100644 --- a/sound/soc/sof/ipc.c +++ b/sound/soc/sof/ipc.c @@ -823,6 +823,9 @@ void snd_sof_ipc_free(struct snd_sof_dev *sdev) { struct snd_sof_ipc *ipc = sdev->ipc; + if (!ipc) + return; + /* disable sending of ipc's */ mutex_lock(&ipc->tx_mutex); ipc->disable_ipc_tx = true; |