dmar: Zero out memory
PATCH 1/1 dmar: Zero out memory
kmemcheck complained about the use of uninitialized memory. So there.
Cc David Woodhouse <[email protected]>
Signed-off-by Hannes Reinecke <[email protected]>
drivers/iommu/dmar.c +1 -1
@@ -1040,7 +1040,7 @@ int dmar_enable_qi(struct intel_iommu *iommu) qi->desc =page_address (desc_page); - qi->desc_status =kmalloc (QI_LENGTH *sizeof (int ),GFP_ATOMIC ); + qi->desc_status =kzalloc (QI_LENGTH *sizeof (int ),GFP_ATOMIC );if (!qi->desc_status) {free_page ((unsigned long ) qi->desc);kfree (qi);
Quoted 5 lines · Hannes Reinecke
kmemcheck complained about the use of uninitialized memory. So there.
Cc David Woodhouse <[email protected]>Signed-off-by Hannes Reinecke <[email protected]>
Applied to x86/vt-d, thanks Hannes.