[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20080425175610.GA11190@c2.user-mode-linux.org>
Date: Fri, 25 Apr 2008 13:56:10 -0400
From: Jeff Dike <jdike@...toit.com>
To: Andrew Morton <akpm@...l.org>, LKML <linux-kernel@...r.kernel.org>,
uml-devel <user-mode-linux-devel@...ts.sourceforge.net>
Cc: Johann Felix Soden <johfel@...rs.sourceforge.net>
Subject: [PATCH 10/19] UML - Fix errno return
From: Johann Felix Soden <johfel@...rs.sourceforge.net>
Error returns are negative.
Signed-off-by: Johann Felix Soden <johfel@...rs.sourceforge.net>
Signed-off-by: Jeff Dike <jdike@...ux.intel.com>
---
arch/um/drivers/hostaudio_kern.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: linux-2.6.22/arch/um/drivers/hostaudio_kern.c
===================================================================
--- linux-2.6.22.orig/arch/um/drivers/hostaudio_kern.c 2007-11-14 10:33:29.000000000 -0500
+++ linux-2.6.22/arch/um/drivers/hostaudio_kern.c 2008-02-13 12:36:26.000000000 -0500
@@ -154,7 +154,7 @@ static int hostaudio_ioctl(struct inode
case SNDCTL_DSP_SUBDIVIDE:
case SNDCTL_DSP_SETFRAGMENT:
if (get_user(data, (int __user *) arg))
- return EFAULT;
+ return -EFAULT;
break;
default:
break;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists