firewire: fw-ohci: don't leak dma memory on module removal
authorJay Fenlason <fenlason@redhat.com>
Wed, 22 Oct 2008 19:59:42 +0000 (15:59 -0400)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Sun, 26 Oct 2008 09:27:00 +0000 (10:27 +0100)
commita55709ba9d27053471f9fca8ee76b41ecefc14cd
treee338976917e3926a292c67fcadc59968504d7fcc
parent77e557191701afa55ae7320d42ad6458a2ad292e
firewire: fw-ohci: don't leak dma memory on module removal

The transmit and receive context dma memory was not being freed on
module removal.  Neither was the config rom memory.  Fix that.

The ab->next assignment is pure paranoia.

Signed-off-by: Jay Fenlason <fenlason@redhat.com>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/fw-ohci.c