lentferj's projects
/
dragonfly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
e373654
)
kernel - Fix bug in shmget()
author
Matthew Dillon <dillon@apollo.backplane.com>
Sat, 29 Oct 2011 01:54:01 +0000 (18:54 -0700)
committer
Matthew Dillon <dillon@apollo.backplane.com>
Sat, 29 Oct 2011 01:54:01 +0000 (18:54 -0700)
* Fix bug in shmget() which was truncating requests >= 4G.
sys/kern/sysv_shm.c
patch
|
blob
|
blame
|
history
diff --git
a/sys/kern/sysv_shm.c
b/sys/kern/sysv_shm.c
index
83f3ae0
..
3720f7b
100644
(file)
--- a/
sys/kern/sysv_shm.c
+++ b/
sys/kern/sysv_shm.c
@@
-532,7
+532,8
@@
shmget_existing(struct proc *p, struct shmget_args *uap, int mode, int segnum)
static int
shmget_allocate_segment(struct proc *p, struct shmget_args *uap, int mode)
{
- int i, segnum, shmid, size;
+ int i, segnum, shmid;
+ size_t size;
struct ucred *cred = p->p_ucred;
struct shmid_ds *shmseg;
struct shm_handle *shm_handle;