soc: rockchip: system_monitor: fix clang warning

drivers/soc/rockchip/rockchip_system_monitor.c:579:2: warning:
Attempt to free released memory

Change-Id: I7bba708b6457fed0553a56ec7f943311a490fbb8
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
This commit is contained in:
Tao Huang
2019-11-05 08:46:59 +08:00
parent 9857c80d9d
commit 088101b2e9

View File

@@ -466,6 +466,7 @@ static int rockchip_init_temp_opp_table(struct monitor_dev_info *info)
opp_table = dev_pm_opp_get_opp_table(dev);
if (!opp_table) {
kfree(info->opp_table);
info->opp_table = NULL;
return -ENOMEM;
}
mutex_lock(&opp_table->lock);