projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb258cc
)
drm/tegra: firewall: Check for is_addr_reg existence in IMM check
author
Mikko Perttunen
<mperttunen@nvidia.com>
Thu, 19 Jan 2023 13:39:01 +0000
(15:39 +0200)
committer
Thierry Reding
<treding@nvidia.com>
Thu, 26 Jan 2023 14:55:38 +0000
(15:55 +0100)
In the IMM opcode check, don't call is_addr_reg if it's not set.
Fixes: 8cc95f3fd35e ("drm/tegra: Add job firewall")
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/firewall.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/tegra/firewall.c
b/drivers/gpu/drm/tegra/firewall.c
index 1824d2db0e2ce57408f578b7b98e055a54f55025..d53f890fa6893313ff7c384b14cd0dc1bab276d4 100644
(file)
--- a/
drivers/gpu/drm/tegra/firewall.c
+++ b/
drivers/gpu/drm/tegra/firewall.c
@@
-97,6
+97,9
@@
static int fw_check_regs_imm(struct tegra_drm_firewall *fw, u32 offset)
{
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,
offset);
if (is_addr)