diff --git a/drivers/gpu/nvgpu/os/linux/dmabuf_priv.c b/drivers/gpu/nvgpu/os/linux/dmabuf_priv.c index 363ee68d4..aa035889b 100644 --- a/drivers/gpu/nvgpu/os/linux/dmabuf_priv.c +++ b/drivers/gpu/nvgpu/os/linux/dmabuf_priv.c @@ -335,9 +335,9 @@ static void *__gk20a_dmabuf_vmap(struct dma_buf *dmabuf) { #if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 11, 0) #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 /* Linux v5.11 and later kernels */ if (dma_buf_vmap(dmabuf, &map))