]> err.no Git - linux-2.6/commit
firewire: fw-ohci: use of uninitialized data in AR handler
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Sat, 31 May 2008 17:36:06 +0000 (19:36 +0200)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Wed, 18 Jun 2008 22:12:34 +0000 (00:12 +0200)
commitccff962943df539c5860aa120eecc189d70a308b
tree645f031d3b751a30e20ce65e364948fb9426f7b2
parent0bf607c5b4edd13362e4add6ca1e81f8a9fbd47c
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>
drivers/firewire/fw-ohci.c