aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1999-11-20 14:56:55 +0000
committerPeter Wemm <peter@FreeBSD.org>1999-11-20 14:56:55 +0000
commit5ab05143219089c8a35caa12eab1ca5ed1de46e7 (patch)
tree5642b41a20062a39e1f394b18a8af675f2d0611a /sys/dev/pci
parent32fc781e063e7421e2c080adebb59d24dbae2332 (diff)
Notes
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/pci.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index 8cb59433c2e72..4a36158c8996c 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -1333,8 +1333,10 @@ pci_get_resource(device_t dev, device_t child, int type, int rid,
if (!rle)
return ENOENT;
- *startp = rle->start;
- *countp = rle->count;
+ if (startp)
+ *startp = rle->start;
+ if (countp)
+ *countp = rle->count;
return 0;
}