projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e889a31
)
drm/tegra: Zero-initialize iosys_map
author
Mikko Perttunen
<mperttunen@nvidia.com>
Fri, 1 Sep 2023 11:59:10 +0000
(14:59 +0300)
committer
Thierry Reding
<treding@nvidia.com>
Wed, 11 Oct 2023 20:52:44 +0000
(22:52 +0200)
UBSAN reports an invalid load for bool, as the iosys_map is read
later without being initialized. Zero-initialize it to avoid this.
Reported-by: Ashish Mhetre <amhetre@nvidia.com>
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/20230901115910.701518-2-cyndis@kapsi.fi
drivers/gpu/drm/tegra/gem.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/tegra/gem.c
b/drivers/gpu/drm/tegra/gem.c
index 11296de59c5a8ff5e862d24d0b760f8c7c39884f..363e02f86382d921248a96e92afacb9261e6b150 100644
(file)
--- a/
drivers/gpu/drm/tegra/gem.c
+++ b/
drivers/gpu/drm/tegra/gem.c
@@
-177,7
+177,7
@@
static void tegra_bo_unpin(struct host1x_bo_mapping *map)
static void *tegra_bo_mmap(struct host1x_bo *bo)
{
struct tegra_bo *obj = host1x_to_tegra_bo(bo);
- struct iosys_map map;
+ struct iosys_map map
= { 0 }
;
int ret;
if (obj->vaddr)