mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 00:34:52 +00:00
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: 99041fea70
("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>
This commit is contained in:
parent
9b7843d1e1
commit
35fe790115
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue