mirror of
git://nv-tegra.nvidia.com/linux-hwpm.git
synced 2025-12-22 17:30:40 +03:00
t23x: hwpm: fix NULL pointer in exec_reg_ops_ioctl
First do the assignment to reg_op before referring it in debug print info. Bug 200702306 Change-Id: Ic0a5ea352793858a746e6fd28759b41e99270be6 Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-t23x/+/2532594 Tested-by: Vedashree Vidwans <vvidwans@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Vedashree Vidwans <vvidwans@nvidia.com> Reviewed-by: Adeel Raza <araza@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
ce130e224f
commit
78465d56ca
@@ -885,9 +885,9 @@ static int exec_reg_ops_ioctl(struct tegra_soc_hwpm *hwpm,
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
reg_op = &(exec_reg_ops->ops[op_idx]);
|
||||
tegra_soc_hwpm_dbg("reg op: idx(%d), phys(0x%llx), cmd(%u)",
|
||||
op_idx, reg_op->phys_addr, reg_op->cmd);
|
||||
reg_op = &(exec_reg_ops->ops[op_idx]);
|
||||
|
||||
/* The whitelist check is done here */
|
||||
aperture = find_hwpm_aperture(hwpm, reg_op->phys_addr, true);
|
||||
|
||||
Reference in New Issue
Block a user