Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 4801
b: refs/heads/master
c: 1feb8d2
h: refs/heads/master
i:
  4799: 26d5eda
v: v3
  • Loading branch information
Paolo 'Blaisorblade' Giarrusso authored and Linus Torvalds committed Jul 14, 2005
1 parent 17b4a7a commit e8a3bcc
Show file tree
Hide file tree
Showing 3 changed files with 3 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: bcb01b8a67476e6f748086e626df8424cc27036d
refs/heads/master: 1feb8d2d7396748fb3bd6795d09bbfbdd4c03dff
2 changes: 1 addition & 1 deletion trunk/arch/um/sys-i386/unmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ int switcheroo(int fd, int prot, void *from, void *to, int size)
if(munmap(to, size) < 0){
return(-1);
}
if(mmap2(to, size, prot, MAP_SHARED | MAP_FIXED, fd, 0) != to){
if(mmap2(to, size, prot, MAP_SHARED | MAP_FIXED, fd, 0) == (void*) -1 ){
return(-1);
}
if(munmap(from, size) < 0){
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/um/sys-x86_64/unmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ int switcheroo(int fd, int prot, void *from, void *to, int size)
if(munmap(to, size) < 0){
return(-1);
}
if(mmap(to, size, prot, MAP_SHARED | MAP_FIXED, fd, 0) != to){
if(mmap(to, size, prot, MAP_SHARED | MAP_FIXED, fd, 0) == (void*) -1){
return(-1);
}
if(munmap(from, size) < 0){
Expand Down

0 comments on commit e8a3bcc

Please sign in to comment.