X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=arch%2Fum%2Fsys-i386%2Funmap.c;h=1b0ad0e4adcd26d29f0b605266dfea0cfb1f19d2;hb=7f98a44b9d09580036da7e7f8b33e66f411cf374;hp=136875263d27838c1bfe3f4c943f0ec1041007d8;hpb=2a5a68b840cbab31baab2d9b2e1e6de3b289ae1e;p=powerpc.git diff --git a/arch/um/sys-i386/unmap.c b/arch/um/sys-i386/unmap.c index 136875263d..1b0ad0e4ad 100644 --- a/arch/um/sys-i386/unmap.c +++ b/arch/um/sys-i386/unmap.c @@ -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){