From 7a5a566eab48da7522f601f96aef3af102178046 Mon Sep 17 00:00:00 2001 From: Joerg Roedel Date: Tue, 30 Jun 2015 08:56:11 +0200 Subject: [PATCH] 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: George Wang Tested-by: George Wang Signed-off-by: Joerg Roedel --- Reading git-format-patch failed