]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: complain if dma buffer allocation not supported
authorIan Abbott <abbotti@mev.co.uk>
Fri, 10 May 2013 13:07:16 +0000 (14:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 May 2013 21:38:48 +0000 (17:38 -0400)
commitfdd83dbe658d8a2174ebb2b248578eeee54e806d
treefedc60a4cc8493b508a3432d915c9f01b554b3f7
parent2d19a01acebd0f5d0c8e09fc3aacfec10e56a579
staging: comedi: complain if dma buffer allocation not supported

When allocating a buffer to support asynchronous comedi commands, if a
DMA coherent buffer was requested but `CONFIG_HAS_DMA` is undefined,
bail out of local helper function `__comedi_buf_alloc()` with an error
message.

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