aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohann Felix Soden <johfel@users.sourceforge.net>2008-05-12 14:01:51 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2008-05-13 08:02:21 -0700
commit484f1e2c1ea58c6a4352313f7ee4edd4b52deecd (patch)
treec7c4c6eeb9794fccfd5bd2781d316f0d9e65dbaa
parentuml: tidy ptrace interface (diff)
downloadlinux-dev-484f1e2c1ea58c6a4352313f7ee4edd4b52deecd.tar.xz
linux-dev-484f1e2c1ea58c6a4352313f7ee4edd4b52deecd.zip
uml: fix errno return
Error returns are negative. Signed-off-by: Johann Felix Soden <johfel@users.sourceforge.net> Signed-off-by: Jeff Dike <jdike@linux.intel.com> Cc: WANG Cong <xiyou.wangcong@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--arch/um/drivers/hostaudio_kern.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/drivers/hostaudio_kern.c b/arch/um/drivers/hostaudio_kern.c
index ff1b22b69e9c..368219cc2366 100644
--- a/arch/um/drivers/hostaudio_kern.c
+++ b/arch/um/drivers/hostaudio_kern.c
@@ -154,7 +154,7 @@ static int hostaudio_ioctl(struct inode *inode, struct file *file,
case SNDCTL_DSP_SUBDIVIDE:
case SNDCTL_DSP_SETFRAGMENT:
if (get_user(data, (int __user *) arg))
- return EFAULT;
+ return -EFAULT;
break;
default:
break;