summaryrefslogtreecommitdiff
path: root/drivers/dma-buf
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2014-08-22 00:32:08 +0400
committerJoerg Roedel <jroedel@suse.de>2014-08-26 13:15:10 +0400
commitc4a783b89ee3fc1201510ecf204278da4ccb0993 (patch)
treef8b102520f6780736cfc21c4d948d3e1ae78ac69 /drivers/dma-buf
parent52addcf9d6669fa439387610bc65c92fa0980cef (diff)
downloadlinux-c4a783b89ee3fc1201510ecf204278da4ccb0993.tar.xz
iommu/core: Make iommu_group_get_for_dev() more robust
When a non-PCI device is passed to that function it might pass group == NULL to iommu_group_add_device() which then dereferences it and cause a crash this way. Fix it by just returning an error for non-PCI devices. Fixes: 104a1c13ac66e40cf8c6ae74d76ff14ff24b9b01 Cc: Alex Williamson <alex.williamson@redhat.com> Acked-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/dma-buf')
0 files changed, 0 insertions, 0 deletions