ALSA: Fix card refcount unbalance
[pandora-kernel.git] / sound / core / oss / pcm_oss.c
index 408f815..542f69e 100644 (file)
@@ -2454,6 +2454,7 @@ static int snd_pcm_oss_open(struct inode *inode, struct file *file)
        mutex_unlock(&pcm->open_mutex);
        if (err < 0)
                goto __error;
+       snd_card_unref(pcm->card);
        return err;
 
       __error: