From: Johann Felix Soden Date: Mon, 12 May 2008 21:01:51 +0000 (-0700) Subject: uml: fix errno return X-Git-Tag: MMI-PSA29.97-13-9~34368 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=484f1e2c1ea58c6a4352313f7ee4edd4b52deecd;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git uml: fix errno return Error returns are negative. Signed-off-by: Johann Felix Soden Signed-off-by: Jeff Dike Cc: WANG Cong Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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;