diff options
| author | Kuninori Morimoto <[email protected]> | 2023-10-27 00:09:56 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2023-10-27 16:37:34 +0000 |
| commit | bd0f7498bc9084d8cccc5484cd004b40f314b763 (patch) | |
| tree | 204dfc53f8dd6c6d54876de5418914dbb0c4b242 /lib/debugobjects.c | |
| parent | ASoC: amd: acp: select SND_SOC_AMD_ACP_LEGACY_COMMON for ACP63 (diff) | |
| download | kernel-bd0f7498bc9084d8cccc5484cd004b40f314b763.tar.gz kernel-bd0f7498bc9084d8cccc5484cd004b40f314b763.zip | |
ASoC: ams-delta.c: use component after check
static void cx81801_close()
{
...
(A) struct snd_soc_dapm_context *dapm = &component->card->dapm;
...
(B) if (!component)
return;
}
(A) uses component before NULL check (B). This patch moves it after (B).
Fixes: d0fdfe34080c ("ASoC: cx20442: replace codec to component")
Reported-by: Dan Carpenter <[email protected]>
Closes: https://lore.kernel.org/r/[email protected]
Signed-off-by: Kuninori Morimoto <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions
