From: H Hartley Sweeten Date: Tue, 26 Aug 2014 00:55:51 +0000 (-0700) Subject: staging: comedi: s626: tidy up freeing of the dma buffers X-Git-Tag: fixes-for-v3.18-merge-window~15^2~991 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3757e79559534e722df93e184078a141dc0bcfa7;p=pandora-kernel.git staging: comedi: s626: tidy up freeing of the dma buffers Currently the dma buffers are freed during the detach of the driver using the function s626_close_dma_b(). The buffers are also freed while the interrupt handler is still attached. This could result in a race condition. Refactor the code so that the buffers are freed after the interrupt handler is released and the PCI device is disabled. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed