From 5742e58fa98d6002f2cdaf5c3e7b063ab122e6b0 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Mon, 18 Apr 2016 21:48:32 +0200 Subject: [PATCH hurd 1/5] mach-defpager: fix error handling * mach-defpager/default_pager.c (S_default_pager_storage_info): Fix error handling. --- mach-defpager/default_pager.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mach-defpager/default_pager.c b/mach-defpager/default_pager.c index 5379795..c79a82a 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; } -- 2.1.4