From: Stefan Richter Date: Sat, 8 Mar 2008 21:38:16 +0000 (+0100) Subject: firewire: warn on fatal condition in topology code X-Git-Tag: v2.6.25-rc6~12^2~5 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a2cdebe33f4c40a1bc7f66522303df89d5026cb4;p=linux-2.6-omap-h63xx.git firewire: warn on fatal condition in topology code If this ever happens to anybody, we want to have it in his log. Signed-off-by: Stefan Richter --- diff --git a/drivers/firewire/fw-topology.c b/drivers/firewire/fw-topology.c index e47bb040197..d2c7a3d7e1c 100644 --- a/drivers/firewire/fw-topology.c +++ b/drivers/firewire/fw-topology.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include "fw-transaction.h" #include "fw-topology.h" @@ -424,8 +425,8 @@ update_tree(struct fw_card *card, struct fw_node *root) node1 = fw_node(list1.next); while (&node0->link != &list0) { + WARN_ON(node0->port_count != node1->port_count); - /* assert(node0->port_count == node1->port_count); */ if (node0->link_on && !node1->link_on) event = FW_NODE_LINK_OFF; else if (!node0->link_on && node1->link_on)