ASoC: msm-cpe: Fix msm_cpe_lsm_ioctl_compat error handling

Change-Id: Iec6a12aaed4dce60f774c09264b8e566a17ce9d9
This commit is contained in:
Michael Bestas 2019-03-04 21:12:23 +02:00 committed by Timi
parent 4c5f56392d
commit 7ba162b3ae

View file

@ -2647,12 +2647,15 @@ static int msm_cpe_lsm_ioctl_compat(struct snd_pcm_substream *substream,
u_event_status32.payload_size;
err = msm_cpe_lsm_ioctl_shared(substream,
cmd, event_status);
if (err)
if (err) {
dev_err(rtd->dev,
"%s: %s failed, error = %d\n",
__func__,
"SNDRV_LSM_EVENT_STATUS_V3_32",
err);
kfree(event_status);
goto done;
}
}
if (!err) {