diff --git a/[refs] b/[refs] index 408acb8a177d..824154e6e661 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 821836e5baa69b8bc80605f25ad963e721609bc0 +refs/heads/master: f66d45e99eb7ca91822c3e3f6d7a98843c9626cb diff --git a/trunk/ipc/shm.c b/trunk/ipc/shm.c index 6d16bb6de7d2..f8e10a25ad7d 100644 --- a/trunk/ipc/shm.c +++ b/trunk/ipc/shm.c @@ -279,7 +279,7 @@ static int newseg (struct ipc_namespace *ns, key_t key, int shmflg, size_t size) if (size < SHMMIN || size > ns->shm_ctlmax) return -EINVAL; - if (ns->shm_tot + numpages >= ns->shm_ctlall) + if (ns->shm_tot + numpages > ns->shm_ctlall) return -ENOSPC; shp = ipc_rcu_alloc(sizeof(*shp));