commit | 7168d914a782086e217214c57ddfc7cc4b738c0c | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Tue Sep 25 10:01:56 2012 +0300 |
committer | Ohad Ben-Cohen <ohad@wizery.com> | Tue Oct 02 09:57:28 2012 +0200 |
tree | 24219d5248763072a4d683dd0ca667227d42cd0b | |
parent | 2ed6d29c725c4aead510b5c23f563795b265acf5 [diff] |
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 <dan.carpenter@oracle.com> [ohad: revise commit log] Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>