Skip to content
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
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment