iommu/vt-d: Check return value of acpi_bus_get_device()
authorJoerg Roedel <jroedel@suse.de>
Thu, 21 Aug 2014 21:06:48 +0000 (23:06 +0200)
committerJoerg Roedel <jroedel@suse.de>
Tue, 26 Aug 2014 09:15:17 +0000 (11:15 +0200)
commitc0df975f9045d6b2b13d88746e628ac308ff49ea
tree48058cedcc8de6cea39c21949daa60059087b3c0
parentc4a783b89ee3fc1201510ecf204278da4ccb0993
iommu/vt-d: Check return value of acpi_bus_get_device()

Checking adev == NULL is not sufficient as
acpi_bus_get_device() might not touch the value of this
parameter in an error case, so check the return value
directly.

Fixes: ed40356b5fcf1ce28e026ab39c5b2b6939068b50
Cc: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
drivers/iommu/dmar.c
This page took 0.027935 seconds and 5 git commands to generate.