]> rtime.felk.cvut.cz Git - lisovros/linux_canprio.git/commit
tools/firewire: nosy-dump: work around segfault in decode_fcp
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Thu, 22 Jul 2010 09:58:05 +0000 (11:58 +0200)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Tue, 27 Jul 2010 09:04:12 +0000 (11:04 +0200)
commita8461c0f3bfffe752fc62ce3960eb827463e90b5
tree6f084345ddad45459397846a069dc5fde7a3b736
parent1bcc69fb6a48edb3ddf2e8c42f1d1c242196bf74
tools/firewire: nosy-dump: work around segfault in decode_fcp

If I run "nosy-dump --view=transaction" with my camcorder on battery
instead of mains, it segfaults very quickly because of !t->request.
Perhaps this is because of increased likelyhood of incomplete
transactions (ack_busy when host writes to camcorder's FCP_Request)
and a bug deeper in nosy-dump's transaction housekeeping.  This is a
quick workaround to get me going.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
tools/firewire/nosy-dump.c