Commit f263a2c2 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: als300: Fix missing chip initialization



The recent code refactoring missed the initialization of the chip
variable as its allocation was moved to card->private_data.
Let's fix it.

Fixes: 21a9314c ("ALSA: als300: Allocate resources with device-managed APIs")
Reported-by: default avatarNathan Chancellor <nathan@kernel.org>
Link: https://lore.kernel.org/r/s5hh7goocid.wl-tiwai@suse.de


Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 35fe7901
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -702,6 +702,7 @@ static int snd_als300_probe(struct pci_dev *pci,
				sizeof(*chip), &card);
	if (err < 0)
		return err;
	chip = card->private_data;

	chip_type = pci_id->driver_data;