aboutsummaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
Diffstat (limited to 'ipc')
-rw-r--r--ipc/shm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipc/shm.c b/ipc/shm.c
index cb858df061d3..8247c49ec073 100644
--- a/ipc/shm.c
+++ b/ipc/shm.c
@@ -462,7 +462,7 @@ static int newseg(struct ipc_namespace *ns, struct ipc_params *params)
462 size_t size = params->u.size; 462 size_t size = params->u.size;
463 int error; 463 int error;
464 struct shmid_kernel *shp; 464 struct shmid_kernel *shp;
465 int numpages = (size + PAGE_SIZE -1) >> PAGE_SHIFT; 465 size_t numpages = (size + PAGE_SIZE - 1) >> PAGE_SHIFT;
466 struct file * file; 466 struct file * file;
467 char name[13]; 467 char name[13];
468 int id; 468 int id;