summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2010-01-22 18:45:31 +0300
committerJoerg Roedel <joerg.roedel@amd.com>2010-01-22 19:32:31 +0300
commit2ca762790caf822f7b61430fbaffa3ae4219977f (patch)
tree66a4633af764df377f9915b63d8fbbba3f6ed4b6 /include/linux
parentd91afd15b041f27d34859c79afa9e172018a86f4 (diff)
downloadlinux-2ca762790caf822f7b61430fbaffa3ae4219977f.tar.xz
x86/amd-iommu: Fix NULL pointer dereference in __detach_device()
In the __detach_device function the reference count for a device-domain binding may become zero. This results in the device being removed from the domain and dev_data->domain will be NULL. This is bad because this pointer is dereferenced when trying to unlock the domain->lock. This patch fixes the issue by keeping the domain in a seperate variable. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions