[PATCH 09/24] drivers/iommu: check actual error on iommu_init

2014-07-03 Thread Jeff Liu
From: Jie Liu kset_create_and_add() has been fixed to return the actual error code ptr rather than NULL, so update iommu_init() to check the return value via IS_ERR() accordingly. Cc: Joerg Roedel Signed-off-by: Jie Liu --- drivers/iommu/iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 delet

Re: [PATCH 09/24] drivers/iommu: check actual error on iommu_init

2014-06-17 Thread Greg KH
On Tue, Jun 17, 2014 at 05:21:54PM +0200, Joerg Roedel wrote: > On Tue, Jun 17, 2014 at 10:29:19PM +0800, Jeff Liu wrote: > > From: Jie Liu > > > > kset_create_and_add() has been fixed to return the actual error > > code ptr rather than NULL, so update iommu_init() to check the > > return value v

Re: [PATCH 09/24] drivers/iommu: check actual error on iommu_init

2014-06-17 Thread Joerg Roedel
On Tue, Jun 17, 2014 at 10:29:19PM +0800, Jeff Liu wrote: > From: Jie Liu > > kset_create_and_add() has been fixed to return the actual error > code ptr rather than NULL, so update iommu_init() to check the > return value via IS_ERR() accordingly. > > Cc: Joerg Roedel > Signed-off-by: Jie Liu