diff options
author | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2023-10-09 13:54:29 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2023-10-19 14:54:57 +0200 |
commit | ad6413bc48f2a86847614b48a7a575f75d2521a5 (patch) | |
tree | 086c710dddcb716bf844b944c2a865c1793942e4 /sound/pci/hda/hda_intel.c | |
parent | ASoC: SOF: Intel: Fix error handling in hda_init() (diff) | |
download | linux-ad6413bc48f2a86847614b48a7a575f75d2521a5.tar.xz linux-ad6413bc48f2a86847614b48a7a575f75d2521a5.zip |
ALSA: hda: Intel: Fix error handling in azx_probe()
Add missing pci_set_drv to NULL call on error.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20231009115437.99976-6-maarten.lankhorst@linux.intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_intel.c')
-rw-r--r-- | sound/pci/hda/hda_intel.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index e19274fd990d..e1354ae90556 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c @@ -2176,6 +2176,7 @@ static int azx_probe(struct pci_dev *pci, return 0; out_free: + pci_set_drvdata(pci, NULL); snd_card_free(card); return err; } |