]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
firewire: fw-ohci: catch self_id_count == 0
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Wed, 19 Mar 2008 21:05:02 +0000 (22:05 +0100)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Fri, 18 Apr 2008 15:55:34 +0000 (17:55 +0200)
commit016bf3dfcf7c7fbad8f02e72b6e01d6773426f9d
tree844a04d866b5b0d5eccdb795ad7e6c9fc79f3f2c
parentc8a9a498e16b2a6c0e4e367b1a01f80fdfd7b6e2
firewire: fw-ohci: catch self_id_count == 0

fw_core_handle_bus_reset() incorrectly relied on the assumption that
self_id_count > 0.

We check early in fw-ohci and discard the self ID complete event if
self_id_count == 0 because a valid event always has at least one self ID
packet in it (the one of the local node).  Hence treat self_id_count ==
0 like any other kind of invalid self ID buffer.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Jarod Wilson <jwilson@redhat.com>
drivers/firewire/fw-ohci.c