From: Joerg Roedel Date: Fri, 9 Mar 2012 12:37:48 +0000 (+0100) Subject: iommu/amd: Fix double free of mem-region in error-path X-Git-Tag: v3.4-rc1~112^2^3~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e930045abe51013ee3b47eaeb5aef4bc5a35218;p=pandora-kernel.git iommu/amd: Fix double free of mem-region in error-path When ioremap_nocache fails in iommu initialization the code calls release_mem_region immediatly. But the function is called again when the propagates into the upper init functions leading to a double-free. Fix that. Reported-by: Don Dutile Signed-off-by: Joerg Roedel --- Reading git-diff-tree failed