aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2012-11-05 12:50:33 -0500
committerOlof Johansson <olof@lixom.net>2012-11-05 12:50:33 -0500
commitc2d8c259bfce056437e8dbc4b048944050f9b567 (patch)
tree726e49653f7014bea034c59624ea23c21d6df13f /lib
parente4de6c961cc8b688443c7989ae3e38d0518334a5 (diff)
parente5c5f2adeb370559f4b221d57214db85858b786a (diff)
Merge branch 'devel/debug_ll_init' into next/multiplatform
* devel/debug_ll_init: ARM: implement debug_ll_io_init() + sync to Linux 3.7-rc4
Diffstat (limited to 'lib')
-rw-r--r--lib/genalloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/genalloc.c b/lib/genalloc.c
index ca208a92628c..54920433705a 100644
--- a/lib/genalloc.c
+++ b/lib/genalloc.c
@@ -178,7 +178,7 @@ int gen_pool_add_virt(struct gen_pool *pool, unsigned long virt, phys_addr_t phy
178 struct gen_pool_chunk *chunk; 178 struct gen_pool_chunk *chunk;
179 int nbits = size >> pool->min_alloc_order; 179 int nbits = size >> pool->min_alloc_order;
180 int nbytes = sizeof(struct gen_pool_chunk) + 180 int nbytes = sizeof(struct gen_pool_chunk) +
181 (nbits + BITS_PER_BYTE - 1) / BITS_PER_BYTE; 181 BITS_TO_LONGS(nbits) * sizeof(long);
182 182
183 chunk = kmalloc_node(nbytes, GFP_KERNEL | __GFP_ZERO, nid); 183 chunk = kmalloc_node(nbytes, GFP_KERNEL | __GFP_ZERO, nid);
184 if (unlikely(chunk == NULL)) 184 if (unlikely(chunk == NULL))