mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
drm/tegra: firewall: Check for is_addr_reg existence in IMM check
In the IMM opcode check, don't call is_addr_reg if it's not set.
Fixes: 8cc95f3fd35e ("drm/tegra: Add job firewall")
Change-Id: I2b7b35afeed774a571fd147aa922718f644c5c88
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Vamsee Vardhan Thummala <vthummala@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2966639
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
a588ad882d
commit
46f980b806
@@ -97,6 +97,9 @@ static int fw_check_regs_imm(struct tegra_drm_firewall *fw, u32 offset)
|
|||||||
{
|
{
|
||||||
bool is_addr;
|
bool is_addr;
|
||||||
|
|
||||||
|
if (!fw->client->ops->is_addr_reg)
|
||||||
|
return 0;
|
||||||
|
|
||||||
is_addr = fw->client->ops->is_addr_reg(fw->client->base.dev, fw->class,
|
is_addr = fw->client->ops->is_addr_reg(fw->client->base.dev, fw->class,
|
||||||
offset);
|
offset);
|
||||||
if (is_addr)
|
if (is_addr)
|
||||||
|
|||||||
Reference in New Issue
Block a user