]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging: comedi: cb_pcidas64: tidy up freeing of the dma buffers
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 26 Aug 2014 00:55:53 +0000 (17:55 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Aug 2014 20:25:51 +0000 (13:25 -0700)
commitf9804323a84017d370b5bd048a3ddd3069500955
tree5278d30f8bcdf4ea1dd7ae9017a14bccff45a2df
parentcaf6d12d036ea78e8f54c40fa99320416b040c71
staging: comedi: cb_pcidas64: tidy up freeing of the dma buffers

Factor the freeing of the dma buffers out of the (*detach).

Move the freeing of the buffers so that it occurs after the PCI device
has been disabled to avoid any race condition.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/cb_pcidas64.c