iommu: Return ERR_PTR() values from device_group call-backs
authorJoerg Roedel <jroedel@suse.de>
Wed, 28 Jun 2017 10:45:31 +0000 (12:45 +0200)
committerJoerg Roedel <jroedel@suse.de>
Wed, 28 Jun 2017 11:29:45 +0000 (13:29 +0200)
commit7f7a2304aabc4a8102bbbbeed2ec9eaee4a480c2
treeab046f0bf6391cdc57f081537702231c03330bff
parentaaffaa8a3b5950c47e5f7573c34bc47de8894a18
iommu: Return ERR_PTR() values from device_group call-backs

The generic device_group call-backs in iommu.c return NULL
in case of error. Since they are getting ERR_PTR values from
iommu_group_alloc(), just pass them up instead.

Reported-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/iommu.c