X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fdevices%2Fpnp_device.c;fp=src%2Fdevices%2Fpnp_device.c;h=a6d428abedbee4c98962668ae505efdfb55504f1;hb=aeead274a105058a6eb84e41cf6d8a32662a3e2c;hp=b2bca032326806a28cff19e673d97e9c1d5be4d3;hpb=38b1f3b772456a1b8ccdba97be3e6bac314a9788;p=coreboot.git diff --git a/src/devices/pnp_device.c b/src/devices/pnp_device.c index b2bca0323..a6d428abe 100644 --- a/src/devices/pnp_device.c +++ b/src/devices/pnp_device.c @@ -170,6 +170,12 @@ static void pnp_get_ioresource(device_t dev, u8 index, struct io_info *info) struct resource *resource; unsigned moving, gran, step; + if (!info->mask) { + printk(BIOS_ERR, "ERROR: device %s index %d has no mask.\n", + dev_path(dev), index); + return; + } + resource = new_resource(dev, index); /* Initilize the resource. */