From: Dan Carpenter Date: Sun, 10 Oct 2010 17:34:22 +0000 (+0200) Subject: OSS: soundcard: fix return value of sound_open() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b7d22ccf08d67d13f77a9580d07e7f72e6241213;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git OSS: soundcard: fix return value of sound_open() Signed-off-by: Dan Carpenter Signed-off-by: Takashi Iwai --- diff --git a/sound/oss/soundcard.c b/sound/oss/soundcard.c index a5ab61ed0a97..46c0d03dbecc 100644 --- a/sound/oss/soundcard.c +++ b/sound/oss/soundcard.c @@ -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)