diff options
| author | Hidetoshi Shimokawa <simokawa@FreeBSD.org> | 2007-05-21 12:17:54 +0000 |
|---|---|---|
| committer | Hidetoshi Shimokawa <simokawa@FreeBSD.org> | 2007-05-21 12:17:54 +0000 |
| commit | bebdf94c45373b1fe4b1317062b5495d1b829cb4 (patch) | |
| tree | 7310af27e1fcf21b9c78c1858cf46847c2bcfb25 /sys/dev/firewire/firewire.c | |
| parent | 4c520cd4c68c6ead8fdf851d9bc9e87090e8caaf (diff) | |
Notes
Diffstat (limited to 'sys/dev/firewire/firewire.c')
| -rw-r--r-- | sys/dev/firewire/firewire.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/firewire/firewire.c b/sys/dev/firewire/firewire.c index 79d0501a3625..c8e8a53d5f03 100644 --- a/sys/dev/firewire/firewire.c +++ b/sys/dev/firewire/firewire.c @@ -1485,6 +1485,7 @@ fw_explore(struct firewire_comm *fc) int node, err, s, i, todo, todo2, trys; char nodes[63]; struct fw_device dfwdev; + union fw_self_id *fwsid; todo = 0; /* setup dummy fwdev */ @@ -1497,7 +1498,8 @@ fw_explore(struct firewire_comm *fc) /* We don't probe myself and linkdown nodes */ if (node == fc->nodeid) continue; - if (!fw_find_self_id(fc, node)->p0.link_active) { + fwsid = fw_find_self_id(fc, node); + if (!fwsid || !fwsid->p0.link_active) { if (firewire_debug) printf("node%d: link down\n", node); continue; |
