lkml.org 
[lkml]   [2008]   [Sep]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [patch 3/4] cpu alloc: The allocator
Duh. A cast went missing which results in a pointer calculation going haywire.

Signed-off-by: <cl@linux-foundation.org>

Index: linux-2.6/mm/cpu_alloc.c
===================================================================
--- linux-2.6.orig/mm/cpu_alloc.c 2008-09-19 14:57:25.000000000 -0500
+++ linux-2.6/mm/cpu_alloc.c 2008-09-19 14:57:33.000000000 -0500
@@ -126,7 +126,7 @@

spin_unlock_irqrestore(&cpu_alloc_map_lock, flags);

- ptr = __per_cpu_end + start;
+ ptr = (int *)__per_cpu_end + start;

printk(KERN_INFO "%d per cpu units allocated at offset %lx address %p\n",
units, start, ptr)


\
 
 \ /
  Last update: 2008-09-19 22:37    [W:0.099 / U:0.456 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site