Skip to content
Commit 7a5a566e authored by Joerg Roedel's avatar Joerg Roedel
Browse files

iommu/amd: Introduce protection_domain_init() function



This function contains the common parts between the
initialization of dma_ops_domains and usual protection
domains. This also fixes a long-standing bug which was
uncovered by recent changes, in which the api_lock was not
initialized for dma_ops_domains.

Reported-by: default avatarGeorge Wang <xuw2015@gmail.com>
Tested-by: default avatarGeorge Wang <xuw2015@gmail.com>
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent a6e08fb2
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