mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
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>
This commit is contained in:
parent
03448e5df5
commit
ad6413bc48
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user