Commit 0134e16c authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] opl3sa2 uninitialised spinlock

opl3sa2 forgot to initialise the spinlock.
parent c366082d
...@@ -752,6 +752,7 @@ static int __devinit snd_opl3sa2_probe(int dev, ...@@ -752,6 +752,7 @@ static int __devinit snd_opl3sa2_probe(int dev,
err = -ENOMEM; err = -ENOMEM;
goto __error; goto __error;
} }
spin_lock_init(&chip->reg_lock);
chip->irq = -1; chip->irq = -1;
if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops)) < 0) if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops)) < 0)
goto __error; goto __error;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment