]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
iommu/fsl: Fix the error condition during iommu group
authorVarun Sethi <Varun.Sethi@freescale.com>
Tue, 24 Jun 2014 13:57:17 +0000 (19:27 +0530)
committerJoerg Roedel <jroedel@suse.de>
Mon, 7 Jul 2014 08:30:02 +0000 (10:30 +0200)
commit3170447c1f264d51b8d1f3898bf2588588a64fdc
tree6bba057a0f26380731f7ad191faff9c9a2edfac3
parent75f0e4615dc328e67634eccd86bc71597da9f8a3
iommu/fsl: Fix the error condition during iommu group

Earlier PTR_ERR was being returned even if group was set to null.
Now, we explicitly set an ERR_PTR value in case the group  pointer is
NULL.

Signed-off-by: Varun Sethi <Varun.Sethi@freescale.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/fsl_pamu_domain.c