Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d6a71bf7 authored by Rickard Strandqvist's avatar Rickard Strandqvist Committed by Joerg Roedel
Browse files

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: default avatarRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Reviewed-by: default avatarBharat Bhushan <bharat.bhushan@freescale.com>
Acked-by: default avatarVarun Sethi <Varun.Sethi@freescale.com>
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent 4b660a7f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -592,8 +592,7 @@ found_cpu_node:
		/* advance to next node in cache hierarchy */
		node = of_find_node_by_phandle(*prop);
		if (!node) {
			pr_debug("Invalid node for cache hierarchy %s\n",
				node->full_name);
			pr_debug("Invalid node for cache hierarchy\n");
			return ~(u32)0;
		}
	}