iommu/amd: Correct the wrong setting of alias DTE in do_attach
authorBaoquan He <bhe@redhat.com>
Wed, 20 Jan 2016 14:01:19 +0000 (22:01 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Feb 2016 20:01:21 +0000 (12:01 -0800)
commitd63a009a9bd9f0503a0d817b6ae97f5b06de22e3
treee7a91831146994542e8dfde09e6b8256788e2f5f
parentc65a7b684133887e9211cd901bb689c48a6c18d8
iommu/amd: Correct the wrong setting of alias DTE in do_attach

commit 9b1a12d29109234d2b9718d04d4d404b7da4e794 upstream.

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.

commit e25bfb56ea7f046b71414e02f80f620deb5c6362
Author: 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>
drivers/iommu/amd_iommu.c