iommu/amd: Handle errors returned from iommu_init_device
authorJoerg Roedel <jroedel@suse.de>
Thu, 11 Jun 2015 07:21:39 +0000 (09:21 +0200)
committerJoerg Roedel <jroedel@suse.de>
Thu, 11 Jun 2015 07:42:25 +0000 (09:42 +0200)
commit4d58b8a6de6b8c3611f10124f83e90e5a2406437
tree6f0503e44e1776dabe7a70cbe71c4523b5581180
parent409e553deeeb08d644ed1110e0f1c97b71cb6409
iommu/amd: Handle errors returned from iommu_init_device

Without this patch only -ENOTSUPP is handled, but there are
other possible errors. Handle them too.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c