diff options
author | Kuninori Morimoto <[email protected]> | 2023-10-27 00:09:56 +0000 |
---|---|---|
committer | Mark Brown <[email protected]> | 2023-10-27 17:37:34 +0100 |
commit | bd0f7498bc9084d8cccc5484cd004b40f314b763 (patch) | |
tree | 204dfc53f8dd6c6d54876de5418914dbb0c4b242 /tools/perf/scripts/python/Perf-Trace-Util | |
parent | a65cdffbef7bfdb9f55a3acb07ccf18d4f97b3a5 (diff) |
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 'tools/perf/scripts/python/Perf-Trace-Util')
0 files changed, 0 insertions, 0 deletions