diff options
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/user_namespace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/user_namespace.c b/kernel/user_namespace.c index a2e37c5d2f63..ad419b04c146 100644 --- a/kernel/user_namespace.c +++ b/kernel/user_namespace.c | |||
| @@ -643,7 +643,7 @@ static ssize_t map_write(struct file *file, const char __user *buf, | |||
| 643 | if (!page) | 643 | if (!page) |
| 644 | goto out; | 644 | goto out; |
| 645 | 645 | ||
| 646 | /* Only allow <= page size writes at the beginning of the file */ | 646 | /* Only allow < page size writes at the beginning of the file */ |
| 647 | ret = -EINVAL; | 647 | ret = -EINVAL; |
| 648 | if ((*ppos != 0) || (count >= PAGE_SIZE)) | 648 | if ((*ppos != 0) || (count >= PAGE_SIZE)) |
| 649 | goto out; | 649 | goto out; |
