]> git.baikalelectronics.ru Git - kernel.git/commit
PM: hibernate: swap: Use vzalloc() and kzalloc()
authorCai Huoqing <caihuoqing@baidu.com>
Mon, 18 Oct 2021 13:16:21 +0000 (21:16 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 21 Oct 2021 11:04:57 +0000 (13:04 +0200)
commiteaedaf7f1ced2edc79383589453bb0514a77914a
tree88b2622556bc1ab96a3e1c27b041226030b0cada
parent734732c706819ca4d1a75e63641cba9c5a751fad
PM: hibernate: swap: Use vzalloc() and kzalloc()

Replace vmalloc()/memset() with vzalloc() and kmalloc()/memset() with
kzalloc() to simplify the code.

Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
kernel/power/swap.c