[PATCH 01/45] s390: fixup for kvm

From: Avi Kivity
Date: Thu Apr 17 2008 - 05:11:37 EST


From: Carsten Otte <cotte@xxxxxxxxxx>

Temporary commit, should appear in mainline shortly.

Signed-off-by: Avi Kivity <avi@xxxxxxxxxxxx>
---
arch/s390/lib/uaccess_pt.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/arch/s390/lib/uaccess_pt.c b/arch/s390/lib/uaccess_pt.c
index 5efdfe9..d68b2ee 100644
--- a/arch/s390/lib/uaccess_pt.c
+++ b/arch/s390/lib/uaccess_pt.c
@@ -365,6 +365,9 @@ int futex_atomic_op_pt(int op, int __user *uaddr, int oparg, int *old)
{
int oldval = 0, newval, ret;

+ if (!current->mm)
+ return -EFAULT;
+
spin_lock(&current->mm->page_table_lock);
uaddr = (int __user *) __dat_user_addr((unsigned long) uaddr);
if (!uaddr) {
--
1.5.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/