From: Ganesh Mahendran Date: Sat, 13 Dec 2014 00:57:10 +0000 (-0800) Subject: mm/zsmalloc: allocate exactly size of struct zs_pool X-Git-Tag: omap-for-v3.20/drop-legacy-3517~97^2~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=181366561ac1e1a7bc3b91dbe45e7614a2f758b9;p=pandora-kernel.git mm/zsmalloc: allocate exactly size of struct zs_pool In zs_create_pool(), we allocate memory more then sizeof(struct zs_pool) ovhd_size = roundup(sizeof(*pool), PAGE_SIZE); This patch allocate memory of exactly needed size. Signed-off-by: Ganesh Mahendran Acked-by: Minchan Kim Cc: Nitin Gupta Cc: Dan Streetman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed