firewire: Survive more than 256 bus resets
commitb6021579f54e5b6b31f03fe24de1208a2feb4aec
authorJay Fenlason <fenlason@redhat.com>
Mon, 27 Oct 2008 22:27:37 +0000 (27 23:27 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 7 Nov 2008 03:05:44 +0000 (6 19:05 -0800)
tree4f75877acc3c7b20c2c760e209954312a08f54e1
parent882491755d4c819de5bb593f04d06692185760aa
firewire: Survive more than 256 bus resets

Same as commit 4f9740d4f5a17fa6a1b097fa3ccdfb7246660307 upstream

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.

Fixes http://bugzilla.kernel.org/show_bug.cgi?id=10922 -
machine locks up solid if a series of bus resets occurs.

Signed-off-by: Jay Fenlason <fenlason@redhat.com>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/firewire/fw-transaction.h