summaryrefslogtreecommitdiffstats
path: root/sound/pci/cs4281.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2021-07-21 00:17:20 +0200
committerTakashi Iwai <tiwai@suse.de>2021-07-21 00:31:39 +0200
commit35fe7901150d5a4a67b4bab544e926fbbf00ebfe (patch)
treef3db7fda90654647ac4cfeb8bcafcb0d9d5f0d0f /sound/pci/cs4281.c
parentALSA: sc6000: Assign vport directly on card's private_data (diff)
downloadlinux-35fe7901150d5a4a67b4bab544e926fbbf00ebfe.tar.xz
linux-35fe7901150d5a4a67b4bab544e926fbbf00ebfe.zip
ALSA: cs4281: Fix missing chip initialization
The chip variable was forgotten to be initialized properly while changing the object creation from the own malloc to card->private_data. This patch fixes it. Fixes: 99041fea70d0 ("ALSA: cs4281: Allocate resources with device-managed APIs") Reported-by: Nathan Chancellor <nathan@kernel.org> Link: https://lore.kernel.org/r/s5him14ocjz.wl-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/cs4281.c')
-rw-r--r--sound/pci/cs4281.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/cs4281.c b/sound/pci/cs4281.c
index f338caf98354..e7367402b84a 100644
--- a/sound/pci/cs4281.c
+++ b/sound/pci/cs4281.c
@@ -1288,7 +1288,7 @@ static int snd_cs4281_create(struct snd_card *card,
struct pci_dev *pci,
int dual_codec)
{
- struct cs4281 *chip;
+ struct cs4281 *chip = card->private_data;
int err;
err = pcim_enable_device(pci);