Skip to contentSkip to conversation

OSS: soundcard: fix return value of sound_open()

PATCH Applied Dan Carpenter 2 participants 2 messages Oct 10, 2010 – Oct 11, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/2 OSS: soundcard: fix return value of sound_open()

sound/oss/soundcard.c +1 -1
index a5ab61e..46c0d03 100644
@@ -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)
Applied
#1 lore raw

At Sun, 10 Oct 2010 19:34:22 +0200,

Quoted 2 lines · Dan Carpenter

Applied. Thanks.

Takashi

Quoted 14 lines
sound/oss/soundcard.c +1 -1
index a5ab61e..46c0d03 100644
@@ -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)