Skip to content

Commit 2c729a4

Browse files
committed
soc: rockchip: system_monitor: fix clang warning
drivers/soc/rockchip/rockchip_system_monitor.c:586:2: warning: Attempt to free released memory Change-Id: Ic9b67a9af84a2f0c108f6801e947620851e19bb8 Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
1 parent 718f98e commit 2c729a4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/soc/rockchip/rockchip_system_monitor.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,7 @@ static int rockchip_init_temp_opp_table(struct monitor_dev_info *info)
475475
if (IS_ERR(opp)) {
476476
ret = PTR_ERR(opp);
477477
kfree(info->opp_table);
478+
info->opp_table = NULL;
478479
goto unlock;
479480
}
480481
info->opp_table[i].rate = opp->rate;

0 commit comments

Comments
 (0)