diff --git a/drivers/gpu/drm/tegra/gem.c b/drivers/gpu/drm/tegra/gem.c index a3a9cd29..3172f51e 100644 --- a/drivers/gpu/drm/tegra/gem.c +++ b/drivers/gpu/drm/tegra/gem.c @@ -179,9 +179,9 @@ static void *tegra_bo_mmap(struct host1x_bo *bo) { struct tegra_bo *obj = host1x_to_tegra_bo(bo); #if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0) - struct iosys_map map; + struct iosys_map map = {0}; #else - struct dma_buf_map map; + struct dma_buf_map map = {0}; #endif int ret;