firewire: Survive more than 256 bus resets
authorJay Fenlason <fenlason@redhat.com>
Thu, 16 Oct 2008 19:51:59 +0000 (15:51 -0400)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Sun, 26 Oct 2008 09:26:59 +0000 (10:26 +0100)
commit4f9740d4f5a17fa6a1b097fa3ccdfb7246660307
tree72ba1bd1f03d2b6372c067f917de0092dd76ce30
parentbe585c07dd577faac26014db4246e6d7c7a131e7
firewire: Survive more than 256 bus resets

The "color" is used during the topology building after a bus reset,
hovever in "struct fw_node"s it is stored in a u8, but in struct fw_card
it is stored in an int.  When the value wraps in one struct, but not
the other, disaster strikes.

Signed-off-by: Jay Fenlason <fenlason@redhat.com>
Fixes http://bugzilla.kernel.org/show_bug.cgi?id=10922.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/fw-transaction.h