From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Carpenter Subject: [patch 2/2] OSS: soundcard: fix return value of sound_open() Date: Sun, 10 Oct 2010 19:34:22 +0200 Message-ID: <20101010173422.GC5851@bicker> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-wy0-f179.google.com (mail-wy0-f179.google.com [74.125.82.179]) by alsa0.perex.cz (Postfix) with ESMTP id 128B42455F for ; Sun, 10 Oct 2010 19:34:32 +0200 (CEST) Received: by mail-wy0-f179.google.com with SMTP id 32so1283310wyb.38 for ; Sun, 10 Oct 2010 10:34:32 -0700 (PDT) Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Jaroslav Kysela Cc: Takashi Iwai , alsa-devel@alsa-project.org, kernel-janitors@vger.kernel.org List-Id: alsa-devel@alsa-project.org Signed-off-by: Dan Carpenter diff --git a/sound/oss/soundcard.c b/sound/oss/soundcard.c index a5ab61e..46c0d03 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) From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Carpenter Date: Sun, 10 Oct 2010 17:34:22 +0000 Subject: [patch 2/2] OSS: soundcard: fix return value of sound_open() Message-Id: <20101010173422.GC5851@bicker> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Jaroslav Kysela Cc: Takashi Iwai , alsa-devel@alsa-project.org, kernel-janitors@vger.kernel.org Signed-off-by: Dan Carpenter diff --git a/sound/oss/soundcard.c b/sound/oss/soundcard.c index a5ab61e..46c0d03 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)