diff options
author | Simon Trimmer <simont@opensource.cirrus.com> | 2024-05-31 15:08:20 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2024-05-31 15:38:41 +0300 |
commit | 6386682cdc8b41319c92fbbe421953e33a28840c (patch) | |
tree | d095ffb71fdd2ad0a928b40d69a25d5e0b533a0b /tools/perf/scripts/python/export-to-sqlite.py | |
parent | d339131bf02d4ed918415574082caf5e8af6e664 (diff) | |
download | linux-6386682cdc8b41319c92fbbe421953e33a28840c.tar.xz |
ALSA: hda: cs35l41: Possible null pointer dereference in cs35l41_hda_unbind()
The cs35l41_hda_unbind() function clears the hda_component entry
matching it's index and then dereferences the codec pointer held in the
first element of the hda_component array, this is an issue when the
device index was 0.
Instead use the codec pointer stashed in the cs35l41_hda structure as it
will still be valid.
Fixes: 7cf5ce66dfda ("ALSA: hda: cs35l41: Add device_link between HDA and cs35l41_hda")
Signed-off-by: Simon Trimmer <simont@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20240531120820.35367-1-simont@opensource.cirrus.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions