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 <stefanr@s5r6.in-berlin.de>

+2 -1
+2 -1
drivers/firewire/fw-topology.c
··· 21 21 #include <linux/module.h> 22 22 #include <linux/wait.h> 23 23 #include <linux/errno.h> 24 + #include <asm/bug.h> 24 25 #include <asm/system.h> 25 26 #include "fw-transaction.h" 26 27 #include "fw-topology.h" ··· 425 424 node1 = fw_node(list1.next); 426 425 427 426 while (&node0->link != &list0) { 427 + WARN_ON(node0->port_count != node1->port_count); 428 428 429 - /* assert(node0->port_count == node1->port_count); */ 430 429 if (node0->link_on && !node1->link_on) 431 430 event = FW_NODE_LINK_OFF; 432 431 else if (!node0->link_on && node1->link_on)