Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 23436
b: refs/heads/master
c: df1e2fb
h: refs/heads/master
v: v3
  • Loading branch information
Hugh Dickins authored and Linus Torvalds committed Mar 24, 2006
1 parent 4f9383c commit 94ec749
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 38885bd4c2a4b59ddb22271d3e6c621859c76f02
refs/heads/master: df1e2fb540368d0f9640045235f81923fa63acb7
3 changes: 3 additions & 0 deletions trunk/ipc/shm.c
Original file line number Diff line number Diff line change
Expand Up @@ -814,6 +814,9 @@ asmlinkage long sys_shmdt(char __user *shmaddr)
loff_t size = 0;
int retval = -EINVAL;

if (addr & ~PAGE_MASK)
return retval;

down_write(&mm->mmap_sem);

/*
Expand Down

0 comments on commit 94ec749

Please sign in to comment.