iommu/amd: Handle integer overflow in dma_ops_area_alloc
authorJoerg Roedel <jroedel@suse.de>
Wed, 27 May 2015 07:26:09 +0000 (09:26 +0200)
committerJoerg Roedel <jroedel@suse.de>
Fri, 29 May 2015 09:18:01 +0000 (11:18 +0200)
commite6aabee05f41c9d18e0b92194819edd84f352ac9
treeafb4e60a376b680d810d4cd5668907eb3ed135c7
parentd4b036648402bb4ef6d4a0df51375a2fb705b6cc
iommu/amd: Handle integer overflow in dma_ops_area_alloc

Handle this case to make sure boundary_size does not become
0 and trigger a BUG_ON later.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c