Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 45754
b: refs/heads/master
c: f66d45e
h: refs/heads/master
v: v3
  • Loading branch information
Guy Streeter authored and Linus Torvalds committed Jan 23, 2007
1 parent f9626d5 commit 824e9c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 821836e5baa69b8bc80605f25ad963e721609bc0
refs/heads/master: f66d45e99eb7ca91822c3e3f6d7a98843c9626cb
2 changes: 1 addition & 1 deletion trunk/ipc/shm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 824e9c8

Please sign in to comment.