From: Dan Carpenter Date: Tue, 25 Sep 2012 07:01:56 +0000 (+0300) Subject: remoteproc: fix a potential NULL-dereference on cleanup X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~18^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7168d914a782086e217214c57ddfc7cc4b738c0c;p=pandora-kernel.git remoteproc: fix a potential NULL-dereference on cleanup We only need to allocate mapping if there is an IOMMU domain. Otherwise, when the mappings are released, the assumption that an IOMMU domain is there will crash and burn. CC: stable@vger.kernel.org Signed-off-by: Dan Carpenter [ohad: revise commit log] Signed-off-by: Ohad Ben-Cohen --- Reading git-diff-tree failed