diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-07-04 16:54:06 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-07-04 16:54:06 +0200 |
commit | 93c8d6be59013bd2a6bd70c0e8c0a967d5ba69ea (patch) | |
tree | a3a990b489063099990007d0c3760a0519dc449e /debian/patches/upstreamme0003-ipc-avoid-kmem_alloc.patch | |
parent | b6b0ae37b280948ce0c657e1576b5cb2a0bcf44d (diff) |
add patch series
Diffstat (limited to 'debian/patches/upstreamme0003-ipc-avoid-kmem_alloc.patch')
-rw-r--r-- | debian/patches/upstreamme0003-ipc-avoid-kmem_alloc.patch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/debian/patches/upstreamme0003-ipc-avoid-kmem_alloc.patch b/debian/patches/upstreamme0003-ipc-avoid-kmem_alloc.patch new file mode 100644 index 0000000..fad62f6 --- /dev/null +++ b/debian/patches/upstreamme0003-ipc-avoid-kmem_alloc.patch @@ -0,0 +1,45 @@ +From 954cc1f1bacd758e3ad889419cf852f73c70b677 Mon Sep 17 00:00:00 2001 +From: Justus Winter <4winter@informatik.uni-hamburg.de> +Date: Thu, 2 Jul 2015 16:14:18 +0200 +Subject: [PATCH gnumach 3/5] ipc: avoid kmem_alloc + +* ipc/ipc_table.c (ipc_table_alloc): Unconditionally use `kalloc'. +(ipc_table_free): Unconditionally use `kfree'. +--- + ipc/ipc_table.c | 15 ++------------- + 1 file changed, 2 insertions(+), 13 deletions(-) + +diff --git a/ipc/ipc_table.c b/ipc/ipc_table.c +index 1a89d81..0f8592a 100644 +--- a/ipc/ipc_table.c ++++ b/ipc/ipc_table.c +@@ -114,15 +114,7 @@ vm_offset_t + ipc_table_alloc( + vm_size_t size) + { +- vm_offset_t table; +- +- if (size < PAGE_SIZE) +- table = kalloc(size); +- else +- if (kmem_alloc(kmem_map, &table, size) != KERN_SUCCESS) +- table = 0; +- +- return table; ++ return kalloc(size); + } + + /* +@@ -139,8 +131,5 @@ ipc_table_free( + vm_size_t size, + vm_offset_t table) + { +- if (size < PAGE_SIZE) +- kfree(table, size); +- else +- kmem_free(kmem_map, table, size); ++ kfree(table, size); + } +-- +2.1.4 + |