diff options
author | Daniel Baluta <daniel.baluta@nxp.com> | 2018-10-17 16:04:28 +0300 |
---|---|---|
committer | Dong Aisheng <aisheng.dong@nxp.com> | 2019-11-25 15:52:05 +0800 |
commit | 2cdddf2f2e89c73d7126355fdea7b22a3c12f74e (patch) | |
tree | 0971323a05b15c4b4633ebd828270913522e4b71 /sound/soc/fsl/fsl_dsp_xaf_api.c | |
parent | ef0c584816f4ee3549f259cc8c48b8b42339a19d (diff) |
MLK-19972-1: ASoC: fsl: dsp: Fix compr_set_param cleanup path
In case of error no cleanup was done leaving thus reasources
in an undefined state.
This can cause crashes like this:
[ 34.259281] fsl-dsp 596e8000.dsp: load codec wrap lib error
[ 34.266333] fsl-dsp 596e8000.dsp: create component failed, type = 1,
err = -2
[ 34.273493] err pool alloc ret = -2
[ 34.298363] Unable to handle kernel NULL pointer dereference at
virtual address 00000000
... which happens when lib_dsp_codec_wrap.so is not present.
While at it, we also realign some lines of code in order to avoid
going over the 80 characters limit that Linux kernel coding style
preaches on.
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Diffstat (limited to 'sound/soc/fsl/fsl_dsp_xaf_api.c')
0 files changed, 0 insertions, 0 deletions