diff options
Diffstat (limited to 'debian/patches/fs_unification0001-mach-defpager-fix-error-handling.patch')
-rw-r--r-- | debian/patches/fs_unification0001-mach-defpager-fix-error-handling.patch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/debian/patches/fs_unification0001-mach-defpager-fix-error-handling.patch b/debian/patches/fs_unification0001-mach-defpager-fix-error-handling.patch new file mode 100644 index 00000000..4c83f57d --- /dev/null +++ b/debian/patches/fs_unification0001-mach-defpager-fix-error-handling.patch @@ -0,0 +1,45 @@ +From 5742e58fa98d6002f2cdaf5c3e7b063ab122e6b0 Mon Sep 17 00:00:00 2001 +From: Justus Winter <justus@gnupg.org> +Date: Mon, 18 Apr 2016 21:48:32 +0200 +Subject: [PATCH hurd 1/3] 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 + |