diff options
author | Ganesh Mahendran <opensource.ganesh@gmail.com> | 2014-12-13 03:57:10 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-13 23:42:50 +0300 |
commit | 181366561ac1e1a7bc3b91dbe45e7614a2f758b9 (patch) | |
tree | 559d989501ca9e8735518a5ae6b7267ea24a5df3 /drivers/block | |
parent | df8b5bb998f10cfc040ad30300f9a9ea4592ff82 (diff) | |
download | linux-181366561ac1e1a7bc3b91dbe45e7614a2f758b9.tar.xz |
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 <opensource.ganesh@gmail.com>
Acked-by: Minchan Kim <minchan@kernel.org>
Cc: Nitin Gupta <ngupta@vflare.org>
Cc: Dan Streetman <ddstreet@ieee.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/block')
0 files changed, 0 insertions, 0 deletions