* [uml-devel] [PATCH] uml: Fix sign of EFAULT in hostaudio_kern.c
@ 2008-02-12 21:24 Johann Felix Soden
2008-02-13 17:40 ` Jeff Dike
0 siblings, 1 reply; 2+ messages in thread
From: Johann Felix Soden @ 2008-02-12 21:24 UTC (permalink / raw)
To: Jeff Dike; +Cc: user-mode-linux-devel
From: Johann Felix Soden <johfel@users.sourceforge.net>
Signed-off-by: Johann Felix Soden <johfel@users.sourceforge.net>
---
arch/um/drivers/hostaudio_kern.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/um/drivers/hostaudio_kern.c b/arch/um/drivers/hostaudio_kern.c
index ff1b22b..368219c 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;
--
1.5.4.1
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-02-13 17:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-12 21:24 [uml-devel] [PATCH] uml: Fix sign of EFAULT in hostaudio_kern.c Johann Felix Soden
2008-02-13 17:40 ` Jeff Dike
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.