]> err.no Git - linux-2.6/commit
firewire: Don't set card->irm_node before we have a new valid topology.
authorKristian Høgsberg <krh@redhat.com>
Tue, 27 Mar 2007 14:42:39 +0000 (09:42 -0500)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Wed, 28 Mar 2007 19:30:15 +0000 (21:30 +0200)
commit93e4fd455c62085cdceea3af4c56d95758d3cb74
tree1b760e2a26572cf80c8a06d21cac3221582a4776
parent3964a4496eaa4cb84772e8dfc6c3a72ec4ddca7a
firewire: Don't set card->irm_node before we have a new valid topology.

In case the topology build fails, we want to retain the old topology
info until another reset finishes and results in a valid new tree.  If
we clear card->irm_node to NULL and the topology build fails, we end up
dereferencing a NULL pointer in a few places.

Signed-off-by: Kristian Høgsberg <krh@redhat.com>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/fw-topology.c