浏览代码

OSS: soundcard: fix return value of sound_open()

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Dan Carpenter 14 年之前
父节点
当前提交
b7d22ccf08
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      sound/oss/soundcard.c

+ 1 - 1
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)