summaryrefslogtreecommitdiff
path: root/debian/patches
diff options
context:
space:
mode:
authorJustus Winter <justus@gnupg.org>2016-04-19 00:36:43 +0200
committerJustus Winter <justus@gnupg.org>2016-04-19 00:36:43 +0200
commit1a1d2365f7a6354bd3f04ea9333474b1d08d1a86 (patch)
treeedc772e86bc19b363aceb32738fd88b80d4e2267 /debian/patches
parent6c2407e0ad1a9ee30750e178d71fbed2c6819fe5 (diff)
add patch series
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/fix0001-mach-defpager-fix-error-handling.patch45
-rw-r--r--debian/patches/series1
2 files changed, 46 insertions, 0 deletions
diff --git a/debian/patches/fix0001-mach-defpager-fix-error-handling.patch b/debian/patches/fix0001-mach-defpager-fix-error-handling.patch
new file mode 100644
index 00000000..bd11295d
--- /dev/null
+++ b/debian/patches/fix0001-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] 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
+
diff --git a/debian/patches/series b/debian/patches/series
index 031dd596..d7c0084f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -38,3 +38,4 @@ exec_filename0004-This-patch-is-an-amendment-of-exec_filename_exec.pat.patch
crash0001-xxx-crash-logging-works.patch
gpg0001-trans-add-identity-translator.patch
gpg0002-trans-add-transparent-GnuPG-translator.patch
+fix0001-mach-defpager-fix-error-handling.patch