diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index 8bc27e7c0590..1bae0746e726 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c @@ -2392,7 +2392,8 @@ static int azx_probe_continue(struct azx *chip) out_free: if (err < 0) { - azx_free(chip); + pci_set_drvdata(pci, NULL); + snd_card_free(chip->card); return err; }