diff options
author | Joerg Roedel <jroedel@suse.de> | 2016-04-04 16:47:48 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-04-20 09:42:13 +0300 |
commit | ab6c5069d1b14ac316b8c9f6aeda986dfe87fe47 (patch) | |
tree | df5df010a16852077b51c3baad6630b26a729b78 /fs/btrfs/tree-log.c | |
parent | ee8516a130918aa1421d426ec978985240a672ed (diff) | |
download | linux-ab6c5069d1b14ac316b8c9f6aeda986dfe87fe47.tar.xz |
iommu: Don't overwrite domain pointer when there is no default_domain
commit eebb8034a5be8c2177cbf07ca2ecd2ff8a058958 upstream.
IOMMU drivers that do not support default domains, but make
use of the the group->domain pointer can get that pointer
overwritten with NULL on device add/remove.
Make sure this can't happen by only overwriting the domain
pointer when it is NULL.
Fixes: 1228236de5f9 ('iommu: Move default domain allocation to iommu_group_get_for_dev()')
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/btrfs/tree-log.c')
0 files changed, 0 insertions, 0 deletions