Re: linux-user/syscall.c - don't add GUEST_BASE to NULL pointer
authorJan-Simon Möller <dl9pf@gmx.de>
Sat, 17 Oct 2009 18:52:43 +0000 (21:52 +0300)
committerRiku Voipio <riku.voipio@iki.fi>
Sat, 17 Oct 2009 18:52:43 +0000 (21:52 +0300)
commitdab46405d964a17f8df7df14cca5804537c3f590
treeaf7700f1ffcf2fa38bdee679c66f130522c7e730
parentf7680a5593032d0c4f699144666605a4f8b044b9
Re: linux-user/syscall.c - don't add GUEST_BASE to NULL pointer

This patch fixes the mount call. GUEST_BASE shouldn't be added to a NULL pointer on arg5 . failing call:
mount("rootfs", "/", 0x47a78, MS_MGC_VAL|MS_REMOUNT, 0x10000) = -1 EFAULT (Bad address)

correct call:
mount("rootfs", "/", 0x37ab0, MS_MGC_VAL|MS_REMOUNT, NULL) = 0

Signed-off-by:  Jan-Simon Möller  <dl9pf@gmx.de>
Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
linux-user/syscall.c