OSDN Git Service

iommu/amd: Don't free pasid_state in mn_release path
authorJoerg Roedel <jroedel@suse.de>
Tue, 8 Jul 2014 12:15:45 +0000 (14:15 +0200)
committerJoerg Roedel <jroedel@suse.de>
Thu, 10 Jul 2014 13:36:27 +0000 (15:36 +0200)
commitc5db16ad6cc15c261639c0105cfff72df4122790
treecbca9e6f752c2aeb193076c21352c818f9318d86
parentcaf8a518d73e71c4073ef1bd5c369e80d27ebf2c
iommu/amd: Don't free pasid_state in mn_release path

The mmu_notifier state is part of pasid_state so it can't be
freed in the mn_release path. Free the pasid_state after
mmu_notifer_unregister has completed.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
Tested-by: Oded Gabbay <Oded.Gabbay@amd.com>
drivers/iommu/amd_iommu_v2.c