mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user