firewire: fw-ohci: use of uninitialized data in AR handler

header_length and payload_length are filled with random data if an
unknown tcode was read from the AR buffer (i.e. if the AR buffer
contained invalid data).

We still need a better strategy to recover from this, but at least
handle_ar_packet now doesn't return out of bound buffer addresses
anymore.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>

+5
+5
drivers/firewire/fw-ohci.c
··· 548 548 p.header_length = 12; 549 549 p.payload_length = 0; 550 550 break; 551 + 552 + default: 553 + /* FIXME: Stop context, discard everything, and restart? */ 554 + p.header_length = 0; 555 + p.payload_length = 0; 551 556 } 552 557 553 558 p.payload = (void *) buffer + p.header_length;