summaryrefslogtreecommitdiff
path: root/sys/dev/vx
diff options
context:
space:
mode:
authorEivind Eklund <eivind@FreeBSD.org>1998-12-16 00:38:57 +0000
committerEivind Eklund <eivind@FreeBSD.org>1998-12-16 00:38:57 +0000
commitfcfdc24dd2bd4538d81abbad12653fe706c96b7e (patch)
treea5092cc0e415cb40d7f9c83111e64ce20d82b615 /sys/dev/vx
parente910d98670345061efaf7992a00dc8991ea0146e (diff)
Notes
Diffstat (limited to 'sys/dev/vx')
-rw-r--r--sys/dev/vx/if_vx_pci.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/vx/if_vx_pci.c b/sys/dev/vx/if_vx_pci.c
index 8eb3d7505e11..ab02693e270d 100644
--- a/sys/dev/vx/if_vx_pci.c
+++ b/sys/dev/vx/if_vx_pci.c
@@ -96,7 +96,9 @@ vx_pci_attach(
return;
}
- sc = vxalloc(unit);
+ if ((sc = vxalloc(unit)) == NULL) {
+ return;
+ }
sc->vx_io_addr = pci_conf_read(config_id, 0x10) & 0xffffffe0;