aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2021-07-21 00:18:18 +0200
committerTakashi Iwai <tiwai@suse.de>2021-07-21 00:31:56 +0200
commitf263a2c2d6c7c44e9256e6a24c9fec668f22ff8b (patch)
treefd3486847f90b38ec3b07628f39c3fbe22ae1fb6 /sound/pci
parentALSA: cs4281: Fix missing chip initialization (diff)
downloadlinux-dev-f263a2c2d6c7c44e9256e6a24c9fec668f22ff8b.tar.xz
linux-dev-f263a2c2d6c7c44e9256e6a24c9fec668f22ff8b.zip
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 <nathan@kernel.org> Link: https://lore.kernel.org/r/s5hh7goocid.wl-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r--sound/pci/als300.c1
1 files changed, 1 insertions, 0 deletions
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;