summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/isa_compat.c
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1999-05-24 18:50:41 +0000
committerdfr <dfr@FreeBSD.org>1999-05-24 18:50:41 +0000
commitc8388c28a15c6d1eb9dc71649bd9deb8ae53a33b (patch)
tree9e0f7e3911ed4b1caeb4dab45960e7d85e77afa4 /sys/i386/isa/isa_compat.c
parentb5519ff1661dc774e43bfe53cfa7b794b2d3440b (diff)
downloadFreeBSD-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.c5
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,
OpenPOWER on IntegriCloud