Skip to contentSkip to conversation

uml: Fix sign of EFAULT in hostaudio_kern.c

PATCH In review Johann Felix Soden 2 participants 2 messages Feb 12, 2008 – Feb 13, 2008 User-mode Linux (UML)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 uml: Fix sign of EFAULT in hostaudio_kern.c

From: Johann Felix Soden <[email protected]>

---
 arch/um/drivers/hostaudio_kern.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/um/drivers/hostaudio_kern.c +1 -1
index ff1b22b..368219c 100644
@@ -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;
Signature · 13 lines
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
#1 lore raw
Quoted 3 lines · Johann Felix Soden

From: Johann Felix Soden <[email protected]>

Thanks - I'll forward this on, with a bit of a changelog :-)

Jeff

Signature · 10 lines
Work email - jdike at linux dot intel dot com

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel