136137138139140141142143144145146
} catch (ResourceNotFreeException ex) { if (cmdBlock != null) { cmdBlock.release(); } if (ctrlBlock != null) { ctrlBlock.release(); } throw ex; } this.irq = irq; this.cmdBlockStart = cmdBlockStart;
147148149150151152153154155156157
} catch (ResourceNotFreeException ex) { if (dmaMem != null) { dmaMem.release(); } if (io2 != null) { io2.release(); } if (io1 != null) { io1.release(); } if (dma != null) {
137138139140141142143144145146147
} if (dma1IO != null) { dma1IO.release(); } if (dma2IO != null) { dma2IO.release(); } throw new DMAException("Cannot claim DMA I/O ports", ex); } }