From: Viresh Kumar Date: Fri, 15 Mar 2013 08:48:20 +0000 (+0530) Subject: DMA: OF: Check properties value before running be32_to_cpup() on it X-Git-Tag: v3.10-rc1~41^2~1^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a188eb126aa7bf27077ee46fcb914898d6fc281;p=pandora-kernel.git DMA: OF: Check properties value before running be32_to_cpup() on it In of_dma_controller_register() routine we are calling of_get_property() as an parameter to be32_to_cpup(). In case the property doesn't exist we will get a crash. This patch changes this code to check if we got a valid property first and then runs be32_to_cpup() on it. Signed-off-by: Viresh Kumar Signed-off-by: Vinod Koul --- Reading git-diff-tree failed