linuw-user fix: read() and acct() on NULL arguments
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 30 Jan 2009 19:48:17 +0000 (19:48 +0000)
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 30 Jan 2009 19:48:17 +0000 (19:48 +0000)
commit8c6526eab9c9f330a210c8874a00ef65610034e3
tree430957f624caae721d7a44cf827ce805516be9dd
parent4e25302adb3304f9af43049becec774eef752241
linuw-user fix: read() and acct() on NULL arguments

Returning efault in these cases is not correct. Originally
proposed by Thayne Harbaugh in 2007:
http://www.mail-archive.com/qemu-devel@nongnu.org/msg14658.html

Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6481 c046a42c-6fe2-441c-8c8c-71466251a162
linux-user/syscall.c