diff options
author | dfr <dfr@FreeBSD.org> | 1999-05-24 18:50:41 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 1999-05-24 18:50:41 +0000 |
commit | c8388c28a15c6d1eb9dc71649bd9deb8ae53a33b (patch) | |
tree | 9e0f7e3911ed4b1caeb4dab45960e7d85e77afa4 /sys/i386/isa/isa_compat.c | |
parent | b5519ff1661dc774e43bfe53cfa7b794b2d3440b (diff) | |
download | FreeBSD-src-c8388c28a15c6d1eb9dc71649bd9deb8ae53a33b.zip FreeBSD-src-c8388c28a15c6d1eb9dc71649bd9deb8ae53a33b.tar.gz |
Don't try to allocate memory resource unless address is non-zero.
Diffstat (limited to 'sys/i386/isa/isa_compat.c')
-rw-r--r-- | sys/i386/isa/isa_compat.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/i386/isa/isa_compat.c b/sys/i386/isa/isa_compat.c index 2bf5377..c5dfd42 100644 --- a/sys/i386/isa/isa_compat.c +++ b/sys/i386/isa/isa_compat.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: isa_compat.c,v 1.9 1999/05/08 21:59:25 dfr Exp $ + * $Id: isa_compat.c,v 1.10 1999/05/22 15:18:12 dfr Exp $ */ #include <sys/param.h> @@ -81,7 +81,8 @@ isa_compat_alloc_resources(device_t dev, struct isa_compat_resources *res) res->ports = 0; if (ISA_GET_RESOURCE(parent, dev, SYS_RES_MEMORY, 0, - &start, &count) == 0) { + &start, &count) == 0 + && start != 0) { rid = 0; res->memory = bus_alloc_resource(dev, SYS_RES_MEMORY, &rid, 0ul, ~0ul, 1, |