]> git.baikalelectronics.ru Git - kernel.git/commit
firewire: ohci: release channel in error path
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Wed, 28 Jul 2010 13:50:00 +0000 (15:50 +0200)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Thu, 29 Jul 2010 21:06:25 +0000 (23:06 +0200)
commitdec0ef9f7b3683ac695a036ffe5b355e5049c056
tree92669edec5be2e06ed1b971e611a7683bb33ab75
parent0d32fb8c7187db7e8e3baf3854654c0ab79310b6
firewire: ohci: release channel in error path

firewire-ohci keeps book of which isochronous channels are occupied by
IR DMA contexts, so that there cannot be more than one context listening
to a certain channel.

If IR context creation failed due to an out-of-memory condition, this
bookkeeping leaked a channel.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/ohci.c