firewire: core: fix crash in iso resource management
commit1821bc19d54009b6f5e6462dd79074d728080839
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Sat, 5 Sep 2009 11:23:49 +0000 (5 13:23 +0200)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Sat, 5 Sep 2009 13:59:34 +0000 (5 15:59 +0200)
tree27c11feb1f613d719ab8d1beff2639ecd3b31dc7
parentebbb16bffa646f853899ef3fdc0ac7abab888703
firewire: core: fix crash in iso resource management

This fixes a regression due to post 2.6.30 commit "firewire: core: do
not DMA-map stack addresses" 6fdc03709433ccc2005f0f593ae9d9dd04f7b485.

As David Moore noted, a previously correct sizeof() expression became
wrong since the commit changed its argument from an array to a pointer.
This resulted in an oops in ohci_cancel_packet in the shared workqueue
thread's context when an isochronous resource was to be freed.

Reported-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/core-iso.c