iommu/vt-d: Zero out allocated memory in dmar_enable_qi
authorHannes Reinecke <hare@suse.de>
Wed, 6 Feb 2013 08:50:10 +0000 (09:50 +0100)
committerJoerg Roedel <joro@8bytes.org>
Thu, 7 Feb 2013 21:00:29 +0000 (22:00 +0100)
commit37a407101e08e444a193837a1e1d4f6f66c8dad4
tree35998d20be539d31895842e93fed2f12f708a5e5
parent88b62b915b0b7e25870eb0604ed9a92ba4bfc9f7
iommu/vt-d: Zero out allocated memory in dmar_enable_qi

kmemcheck complained about the use of uninitialized memory.
Fix by using kzalloc instead of kmalloc.

Cc: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Joerg Roedel <joro@8bytes.org>
drivers/iommu/dmar.c