remoteproc: fix a potential NULL-dereference on cleanup
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 25 Sep 2012 07:01:56 +0000 (10:01 +0300)
committerOhad Ben-Cohen <ohad@wizery.com>
Tue, 2 Oct 2012 07:57:28 +0000 (09:57 +0200)
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 <dan.carpenter@oracle.com>
[ohad: revise commit log]
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>

No differences found