Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 6e930045 authored by Joerg Roedel's avatar Joerg Roedel
Browse files

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: default avatarDon Dutile <ddutile@redhat.com>
Signed-off-by: default avatarJoerg Roedel <joerg.roedel@amd.com>
parent 8704a1ba
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment