From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <48EB7192.6090307@linux-foundation.org> Date: Tue, 07 Oct 2008 09:26:26 -0500 From: Christoph Lameter MIME-Version: 1.0 Subject: Re: [BUG] SLOB's krealloc() seems bust References: <1223387841.26330.36.camel@lappy.programming.kicks-ass.net> <48EB6D2C.30806@linux-foundation.org> <1223388788.26330.38.camel@lappy.programming.kicks-ass.net> In-Reply-To: <1223388788.26330.38.camel@lappy.programming.kicks-ass.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org Return-Path: To: Peter Zijlstra Cc: Matt Mackall , linux-mm , Nick Piggin , Linus Torvalds , Ingo Molnar , linux-kernel List-ID: Peter Zijlstra wrote: > kernel/module.c: perpcu_modinit() reads: > > pcpu_size = kmalloc(sizeof(pcpu_size[0]) * pcpu_num_allocated, > GFP_KERNEL); > > kernel/module.c: split_block() reads: > > new = krealloc(pcpu_size, sizeof(new[0])*pcpu_num_allocated*2, > GFP_KERNEL); > That code is on the way out btw. cpu_alloc support removes this code. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org