diff options
author | 2010-01-22 16:45:31 +0100 | |
---|---|---|
committer | 2010-01-22 17:32:31 +0100 | |
commit | 2ca762790caf822f7b61430fbaffa3ae4219977f (patch) | |
tree | 66a4633af764df377f9915b63d8fbbba3f6ed4b6 /lib/dma-debug.c | |
parent | x86/amd-iommu: Fix possible integer overflow (diff) | |
download | linux-dev-2ca762790caf822f7b61430fbaffa3ae4219977f.tar.xz linux-dev-2ca762790caf822f7b61430fbaffa3ae4219977f.zip |
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 'lib/dma-debug.c')
0 files changed, 0 insertions, 0 deletions