Messages in this thread | | | Date | Sat, 23 Dec 2017 12:54:19 +0300 | From | "Kirill A. Shutemov" <> | Subject | Re: [PATCH] mm/sparse.c: Wrong allocation for mem_section |
| |
On Fri, Dec 22, 2017 at 04:48:18PM +0800, Baoquan He wrote: > In commit > > 83e3c48729 "mm/sparsemem: Allocate mem_section at runtime for CONFIG_SPARSEMEM_EXTREME=y" > > mem_section is allocated at runtime to save memory. While it allocates > the first dimension of array with sizeof(struct mem_section). It costs > extra memory, should be sizeof(struct mem_section*). > > Fix it. > > Signed-off-by: Baoquan He <bhe@redhat.com> > Tested-by: Dave Young <dyoung@redhat.com> > Cc: Ingo Molnar <mingo@kernel.org> > Cc: Andrew Morton <akpm@linux-foundation.org> > Cc: Andy Lutomirski <luto@amacapital.net> > Cc: Peter Zijlstra <peterz@infradead.org> > Cc: Thomas Gleixner <tglx@linutronix.de> > Cc: Atsushi Kumagai <ats-kumagai@wm.jp.nec.com> > Cc: linux-mm@kvack.org
Ughh. Sorry.
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Please queue it to stable.
-- Kirill A. Shutemov
| |