diff options
| author | Kenneth D. Merry <ken@FreeBSD.org> | 1999-12-08 05:04:11 +0000 |
|---|---|---|
| committer | Kenneth D. Merry <ken@FreeBSD.org> | 1999-12-08 05:04:11 +0000 |
| commit | 7f45e090d23c607efb14c15b4da74aae560b094f (patch) | |
| tree | 871f650983fc0937521200dba394486164d7235c | |
| parent | 44fbdde6f620bc3d7089d47318a5794ea53a0933 (diff) | |
Notes
| -rw-r--r-- | sys/pci/pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/pci/pci.c b/sys/pci/pci.c index 811b759d161b..2dc1d4b45480 100644 --- a/sys/pci/pci.c +++ b/sys/pci/pci.c @@ -339,9 +339,9 @@ pci_readcfg(pcicfgregs *probe) if (devlist_entry == NULL) return (NULL); - cfg = &devlist_entry->cfg; + bzero(devlist_entry, sizeof(*devlist_entry)); - bzero(cfg, sizeof *cfg); + cfg = &devlist_entry->cfg; cfg->bus = probe->bus; cfg->slot = probe->slot; |
