update kernels to 2.6.32.25 and 2.6.35.8
[openwrt.git] / target / linux / coldfire / patches / 011-mcfv4e_namespace_align.patch
1 From a51f4e9bff26cc43b53938169f98c27183ec63ea Mon Sep 17 00:00:00 2001
2 From: Kurt Mahan <kmahan@freescale.com>
3 Date: Wed, 31 Oct 2007 17:08:59 -0600
4 Subject: [PATCH] Change to align on page size for COLDFIRE.
5
6 LTIBName: mcfv4e-namespace-align
7 Signed-off-by: Kurt Mahan <kmahan@freescale.com>
8 ---
9 fs/namespace.c | 4 ++++
10 1 files changed, 4 insertions(+), 0 deletions(-)
11
12 --- a/fs/namespace.c
13 +++ b/fs/namespace.c
14 @@ -1364,7 +1364,11 @@ int copy_mount_options(const void __user
15 /* copy_from_user cannot cross TASK_SIZE ! */
16 size = TASK_SIZE - (unsigned long)data;
17 if (size > PAGE_SIZE)
18 +#ifndef CONFIG_COLDFIRE
19 size = PAGE_SIZE;
20 +#else
21 + size = PAGE_SIZE - ((unsigned long)data & ~PAGE_MASK);
22 +#endif
23
24 i = size - exact_copy_from_user((void *)page, data, size);
25 if (!i) {
This page took 0.040772 seconds and 5 git commands to generate.