@@ -36,9 +36,9 @@ k_platform_syscall_arg args[] = { (sz)header, total }; struct k_platform_syscall_answer r = k_platform_syscall (k_platform_syscall_munmap, Kmsz(args), args); - if(r.error==0) { + if(r.error!=0) { /* we don't need to bother recovering the error * code, there's only one possible munmap error */ return kmcond_bad_address; }