diff options
| author | Steve French <sfrench@us.ibm.com> | 2006-01-12 17:47:08 -0500 |
|---|---|---|
| committer | Steve French <sfrench@us.ibm.com> | 2006-01-12 17:47:08 -0500 |
| commit | 94bc2be31a01a3055ec94176e595dfe208e92d3b (patch) | |
| tree | ebfbe81c6718a6390bfa1b99c6d228237d818576 /kernel/futex.c | |
| parent | c32a0b689cb9cc160cfcd19735bbf50bb70c6ef4 (diff) | |
| parent | 58cba4650a7a414eabd2b40cc9d8e45fcdf192d9 (diff) | |
Merge with /pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'kernel/futex.c')
| -rw-r--r-- | kernel/futex.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/futex.c b/kernel/futex.c index 5e71a6bf6f6b..5efa2f978032 100644 --- a/kernel/futex.c +++ b/kernel/futex.c | |||
| @@ -356,6 +356,13 @@ retry: | |||
| 356 | if (bh1 != bh2) | 356 | if (bh1 != bh2) |
| 357 | spin_unlock(&bh2->lock); | 357 | spin_unlock(&bh2->lock); |
| 358 | 358 | ||
| 359 | #ifndef CONFIG_MMU | ||
| 360 | /* we don't get EFAULT from MMU faults if we don't have an MMU, | ||
| 361 | * but we might get them from range checking */ | ||
| 362 | ret = op_ret; | ||
| 363 | goto out; | ||
| 364 | #endif | ||
| 365 | |||
| 359 | if (unlikely(op_ret != -EFAULT)) { | 366 | if (unlikely(op_ret != -EFAULT)) { |
| 360 | ret = op_ret; | 367 | ret = op_ret; |
| 361 | goto out; | 368 | goto out; |
