aboutsummaryrefslogtreecommitdiffstats
path: root/ipc/shm.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-04-18 12:12:14 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-04-18 12:12:14 -0400
commitfac56c2df51bc29b07b3c2dcfabf32a015a0522c (patch)
tree1ff5d84ecf4ea0bcbd42e2ef9624b5ade3810890 /ipc/shm.c
parent6caa15d0b84d2ea688fd31f4f172c8353463e109 (diff)
parenta6360dd37e1a144ed11e6548371bade559a1e4df (diff)
Merge commit 'v2.6.39-rc3' into for-2.6.39
Diffstat (limited to 'ipc/shm.c')
-rw-r--r--ipc/shm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipc/shm.c b/ipc/shm.c
index 8644452f5c4c..729acb7e3148 100644
--- a/ipc/shm.c
+++ b/ipc/shm.c
@@ -1056,7 +1056,7 @@ SYSCALL_DEFINE1(shmdt, char __user *, shmaddr)
1056 /* 1056 /*
1057 * We need look no further than the maximum address a fragment 1057 * We need look no further than the maximum address a fragment
1058 * could possibly have landed at. Also cast things to loff_t to 1058 * could possibly have landed at. Also cast things to loff_t to
1059 * prevent overflows and make comparisions vs. equal-width types. 1059 * prevent overflows and make comparisons vs. equal-width types.
1060 */ 1060 */
1061 size = PAGE_ALIGN(size); 1061 size = PAGE_ALIGN(size);
1062 while (vma && (loff_t)(vma->vm_end - addr) <= size) { 1062 while (vma && (loff_t)(vma->vm_end - addr) <= size) {