Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145565
b: refs/heads/master
c: 586c7e6
h: refs/heads/master
i:
  145563: 8602bf0
v: v3
  • Loading branch information
Mike Frysinger authored and Linus Torvalds committed Jun 9, 2009
1 parent 0051515 commit 3a6a15c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: 13df635f080d411a152c92087a384135c1562fac
refs/heads/master: 586c7e6a280580fd94b662bf486f9bb31098d14b
7 changes: 5 additions & 2 deletions trunk/ipc/shm.c
Original file line number Diff line number Diff line change
Expand Up @@ -969,10 +969,13 @@ SYSCALL_DEFINE3(shmat, int, shmid, char __user *, shmaddr, int, shmflg)
SYSCALL_DEFINE1(shmdt, char __user *, shmaddr)
{
struct mm_struct *mm = current->mm;
struct vm_area_struct *vma, *next;
struct vm_area_struct *vma;
unsigned long addr = (unsigned long)shmaddr;
loff_t size = 0;
int retval = -EINVAL;
#ifdef CONFIG_MMU
loff_t size = 0;
struct vm_area_struct *next;
#endif

if (addr & ~PAGE_MASK)
return retval;
Expand Down

0 comments on commit 3a6a15c

Please sign in to comment.