ASoC: msm-cpe: Fix msm_cpe_lsm_ioctl_compat error handling
Change-Id: Iec6a12aaed4dce60f774c09264b8e566a17ce9d9
This commit is contained in:
parent
4c5f56392d
commit
7ba162b3ae
1 changed files with 4 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue