summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustus Winter <justus@gnupg.org>2016-04-18 21:48:32 +0200
committerJustus Winter <justus@gnupg.org>2016-04-19 11:59:59 +0200
commitb91ac2b9c65142beef19d44bbcdacd16e12c0920 (patch)
tree3b90fd378fdf732dc0c41cbc4ca6b4b2e9582858
parent633e4a7796b13ec7db0f7e78849c35e8f428091a (diff)
mach-defpager: fix error handling
* mach-defpager/default_pager.c (S_default_pager_storage_info): Fix error handling.
-rw-r--r--mach-defpager/default_pager.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mach-defpager/default_pager.c b/mach-defpager/default_pager.c
index 53797958..c79a82a6 100644
--- a/mach-defpager/default_pager.c
+++ b/mach-defpager/default_pager.c
@@ -3268,7 +3268,7 @@ S_default_pager_storage_info (mach_port_t pager,
{
kr = vm_allocate(default_pager_self, &addr,
round_page(m * sizeof(*size)), TRUE);
- if (kr != KERN_SUCCESS);
+ if (kr != KERN_SUCCESS)
goto nomemory;
*size = (vm_size_array_t) addr;
}
@@ -3278,7 +3278,7 @@ S_default_pager_storage_info (mach_port_t pager,
{
kr = vm_allocate(default_pager_self, &addr,
round_page(m * sizeof(*free)), TRUE);
- if (kr != KERN_SUCCESS);
+ if (kr != KERN_SUCCESS)
goto nomemory;
*free = (vm_size_array_t) addr;
}
@@ -3288,7 +3288,7 @@ S_default_pager_storage_info (mach_port_t pager,
{
kr = vm_allocate(default_pager_self, &addr,
round_page(len), TRUE);
- if (kr != KERN_SUCCESS);
+ if (kr != KERN_SUCCESS)
goto nomemory;
*name = (data_t) addr;
}