iommu/vt-d: Avoid format string leaks into iommu_device_create
authorKees Cook <keescook@chromium.org>
Fri, 24 Jul 2015 23:27:57 +0000 (16:27 -0700)
committerJoerg Roedel <jroedel@suse.de>
Mon, 3 Aug 2015 14:15:47 +0000 (16:15 +0200)
commit2439d4aa9247f4c94351d0cf7d75c16146785eb8
tree9408513d7a0fa50c91de5f32223c46ac41e28269
parent74d33293e467df61de1b1d8b2fbe29e550dec33b
iommu/vt-d: Avoid format string leaks into iommu_device_create

This makes sure it won't be possible to accidentally leak format
strings into iommu device names. Current name allocations are safe,
but this makes the "%s" explicit.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/dmar.c
drivers/iommu/intel-iommu.c