diff --git a/drivers/soc/qcom/memory_dump_v2.c b/drivers/soc/qcom/memory_dump_v2.c index 16990bbf70b0..f83ca128a360 100644 --- a/drivers/soc/qcom/memory_dump_v2.c +++ b/drivers/soc/qcom/memory_dump_v2.c @@ -1068,7 +1068,7 @@ static int mem_dump_alloc(struct platform_device *pdev) uint32_t ns_vmids[] = {VMID_HLOS}; uint32_t ns_vm_perms[] = {PERM_READ | PERM_WRITE}; u64 shm_bridge_handle; - int initialized; + int initialized = 0; if (mem_dump_reserve_mem(&pdev->dev) != 0) return -ENOMEM;