diff options
| author | Bob Song <songxiebing@kylinos.cn> | 2026-07-30 09:53:02 +0800 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2026-07-30 11:34:52 +0200 |
| commit | 3b36ac93739e7b119a30affaee9c2dd41f24efbb (patch) | |
| tree | 8a192240590e410e9196a91acdcb1ac5ac7222ba | |
| parent | 5b106b40ed22098f2bc049efb645148d038444bd (diff) | |
| download | linux-next-3b36ac93739e7b119a30affaee9c2dd41f24efbb.tar.gz linux-next-3b36ac93739e7b119a30affaee9c2dd41f24efbb.zip | |
ALSA: hda/realtek: add missing NULL check for codec->bus->pci
In alc269_probe(), codec->bus->pci is dereferenced without a NULL check
for the ALC236 vendor ID case. Add the missing check, consistent with
the existing pattern used elsewhere in the same function.
Signed-off-by: Bob Song <songxiebing@kylinos.cn>
Link: https://patch.msgid.link/20260730015302.253008-2-songxiebing@kylinos.cn
Signed-off-by: Takashi Iwai <tiwai@suse.de>
| -rw-r--r-- | sound/hda/codecs/realtek/alc269.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/hda/codecs/realtek/alc269.c b/sound/hda/codecs/realtek/alc269.c index 9c5945c6904b..327f89b59639 100644 --- a/sound/hda/codecs/realtek/alc269.c +++ b/sound/hda/codecs/realtek/alc269.c @@ -8977,6 +8977,7 @@ static int alc269_probe(struct hda_codec *codec, const struct hda_device_id *id) spec->init_hook = alc256_init; spec->gen.mixer_nid = 0; /* ALC256 does not have any loopback mixer path */ if (codec->core.vendor_id == 0x10ec0236 && + codec->bus->pci && codec->bus->pci->vendor != PCI_VENDOR_ID_AMD) spec->en_3kpull_low = false; break; |
