mm/hotplug: only free wait_table if it's allocated by vmalloc
authorJianguo Wu <wujianguo@huawei.com>
Fri, 22 Mar 2013 22:04:50 +0000 (15:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 22 Mar 2013 23:41:20 +0000 (16:41 -0700)
commitca4b3f302c90de5e516296e581c31c80125cd24b
tree5cf9cdf44bdc28d644571c29840e3f818bd8c8d9
parent96e7d7a1e0fc7780b4c1981c787e42473aa91a95
mm/hotplug: only free wait_table if it's allocated by vmalloc

zone->wait_table may be allocated from bootmem, it can not be freed.

Signed-off-by: Jianguo Wu <wujianguo@huawei.com>
Reviewed-by: Tang Chen <tangchen@cn.fujitsu.com>
Cc: Tang Chen <tangchen@cn.fujitsu.com>
Cc: Jiang Liu <jiang.liu@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memory_hotplug.c