mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Ignore resources with a size of 0, as these are disabled (and we don't
deal with them properly elsewhere). Submitted by: Masayuki FUKUI <fukui@sonic.nm.fujitsu.co.jp>
This commit is contained in:
parent
5e25dc0f5c
commit
847166ca5a
1 changed files with 7 additions and 0 deletions
|
|
@ -303,6 +303,13 @@ pnp_parse_resources(device_t dev, u_char *resources, int len, u_int32_t vendor_i
|
|||
break;
|
||||
|
||||
case PNP_TAG_MEMORY32_RANGE:
|
||||
if (I32(resinfo + 13) == 0) {
|
||||
if (bootverbose) {
|
||||
printf("%s: skipping empty range\n",
|
||||
pnp_eisaformat(id));
|
||||
}
|
||||
continue;
|
||||
}
|
||||
if (bootverbose) {
|
||||
printf("%s: adding memory32 range "
|
||||
"%#x-%#x, size=%#x, "
|
||||
|
|
|
|||
Loading…
Reference in a new issue