mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 19:56:18 +00:00
dmar: fix uninitialised 'ret' variable in dmar_parse_dev()
This was introduced by commit 1886e8a90a
("x64, x2apic/intr-remap: code re-structuring, to be used by both DMA
and Interrupt remapping"). It was causing bogus results to be returned
from dmar_parse_dev() when the first unit with the INCLUDE_ALL flag was
processed.
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
This commit is contained in:
parent
bb9e6d6507
commit
f82851a8a4
1 changed files with 2 additions and 3 deletions
|
@ -188,12 +188,11 @@ dmar_parse_one_drhd(struct acpi_dmar_header *header)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int __init
|
static int __init dmar_parse_dev(struct dmar_drhd_unit *dmaru)
|
||||||
dmar_parse_dev(struct dmar_drhd_unit *dmaru)
|
|
||||||
{
|
{
|
||||||
struct acpi_dmar_hardware_unit *drhd;
|
struct acpi_dmar_hardware_unit *drhd;
|
||||||
static int include_all;
|
static int include_all;
|
||||||
int ret;
|
int ret = 0;
|
||||||
|
|
||||||
drhd = (struct acpi_dmar_hardware_unit *) dmaru->hdr;
|
drhd = (struct acpi_dmar_hardware_unit *) dmaru->hdr;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue