Skip to content

Commit b7d22cc

Browse files
error27tiwai
authored andcommitted
OSS: soundcard: fix return value of sound_open()
Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 4e83998 commit b7d22cc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎sound/oss/soundcard.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ static int sound_open(struct inode *inode, struct file *file)
249249
}
250250

251251
mutex_unlock(&soundcard_mutex);
252-
return 0;
252+
return retval;
253253
}
254254

255255
static int sound_release(struct inode *inode, struct file *file)

0 commit comments

Comments
 (0)