OSS: soundcard: fix return value of sound_open()
Dan Carpenter [Sun, 10 Oct 2010 17:34:22 +0000 (19:34 +0200)]
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

sound/oss/soundcard.c

index a5ab61e..46c0d03 100644 (file)
@@ -249,7 +249,7 @@ static int sound_open(struct inode *inode, struct file *file)
        }
 
        mutex_unlock(&soundcard_mutex);
-       return 0;
+       return retval;
 }
 
 static int sound_release(struct inode *inode, struct file *file)