mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 05:55:44 +02:00
iommu/amd: Correct the wrong setting of alias DTE in do_attach
commit9b1a12d291upstream. In below commit alias DTE is set when its peripheral is setting DTE. However there's a code bug here to wrongly set the alias DTE, correct it in this patch. commite25bfb56eaAuthor: Joerg Roedel <jroedel@suse.de> Date: Tue Oct 20 17:33:38 2015 +0200 iommu/amd: Set alias DTE in do_attach/do_detach Signed-off-by: Baoquan He <bhe@redhat.com> Tested-by: Mark Hounschell <markh@compro.net> Signed-off-by: Joerg Roedel <jroedel@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c65a7b6841
commit
d63a009a9b
|
|
@ -1905,7 +1905,7 @@ static void do_attach(struct iommu_dev_data *dev_data,
|
|||
/* Update device table */
|
||||
set_dte_entry(dev_data->devid, domain, ats);
|
||||
if (alias != dev_data->devid)
|
||||
set_dte_entry(dev_data->devid, domain, ats);
|
||||
set_dte_entry(alias, domain, ats);
|
||||
|
||||
device_flush_dte(dev_data);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user