From f263a2c2d6c7c44e9256e6a24c9fec668f22ff8b Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Wed, 21 Jul 2021 00:18:18 +0200 Subject: 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: 21a9314cf93b ("ALSA: als300: Allocate resources with device-managed APIs") Reported-by: Nathan Chancellor Link: https://lore.kernel.org/r/s5hh7goocid.wl-tiwai@suse.de Signed-off-by: Takashi Iwai --- sound/pci/als300.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sound/pci/als300.c') diff --git a/sound/pci/als300.c b/sound/pci/als300.c index 9c94072572a5..b86565dcdbe4 100644 --- a/sound/pci/als300.c +++ b/sound/pci/als300.c @@ -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; -- cgit v1.2.3