mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
soc: rockchip: pm_config: initialize sleep_config to 0
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com> Change-Id: I95697411f67492f1e83f07010248f4cab487d6ed
This commit is contained in:
committed by
Tao Huang
parent
f45da24df9
commit
0196404b4f
@@ -431,7 +431,8 @@ static int pm_config_probe(struct platform_device *pdev)
|
||||
|
||||
sleep_config =
|
||||
devm_kmalloc_array(&pdev->dev, RK_PM_STATE_MAX,
|
||||
sizeof(*sleep_config), GFP_KERNEL);
|
||||
sizeof(*sleep_config),
|
||||
GFP_KERNEL | __GFP_ZERO);
|
||||
if (!sleep_config)
|
||||
return -ENOMEM;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user