iommu: fsl_pamu.c: Fix for possible null pointer dereference
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Sat, 17 May 2014 17:16:44 +0000 (19:16 +0200)
committerJoerg Roedel <jroedel@suse.de>
Mon, 26 May 2014 09:44:29 +0000 (11:44 +0200)
commitd6a71bf79da03b835f8df5430eaee6fc46df1038
treeaec4b2246b0af970cf6dd356d4a1804c7ad30d42
parent4b660a7f5c8099d88d1a43d8ae138965112592c7
iommu: fsl_pamu.c: Fix for possible null pointer dereference

There is otherwise a risk of a possible null pointer dereference.

Was largely found by using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Reviewed-by: Bharat Bhushan <bharat.bhushan@freescale.com>
Acked-by: Varun Sethi <Varun.Sethi@freescale.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/fsl_pamu.c