]> git.baikalelectronics.ru Git - kernel.git/commit
firewire: fix panic in handle_at_packet
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Sat, 15 Mar 2008 23:56:41 +0000 (00:56 +0100)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Thu, 20 Mar 2008 17:13:05 +0000 (18:13 +0100)
commit0d1cb3bd2f5d4c4f8255ac4a0e2fb2aad3d411c9
tree12ccd93d3747f55c5efeeb51a042a5d4829eb3d7
parent248e9a4e8b07c328617e6605a5b051517c195b01
firewire: fix panic in handle_at_packet

This fixes a use-after-free bug in the handling of split transactions.
The AT DMA handler of the request was occasionally executed after the
AR DMA handler of the response.  The AT DMA handler then accessed an
already freed packet.

Reported by Johannes Berg.
http://bugzilla.kernel.org/show_bug.cgi?id=9617

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Tested-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Jarod Wilson <jwilson@redhat.com>
drivers/firewire/fw-transaction.c