diff options
| author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2016-04-08 10:14:58 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-06-01 12:15:52 -0700 |
| commit | 023bea74522670cdedcc54dea5bec1b64e3f81e3 (patch) | |
| tree | b76e068825894f57f6dd6acb811e75284ee58def /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 53c24ba2dd1da897950baef016f2f2d08d95cbf7 (diff) | |
staging: comedi: das1800: fix possible NULL dereference
commit d375278d666760e195693b57415ba0a125cadd55 upstream.
DMA is optional with this driver. If it was not enabled the devpriv->dma
pointer will be NULL.
Fix the possible NULL pointer dereference when trying to disable the DMA
channels in das1800_ai_cancel() and tidy up the comments to fix the
checkpatch.pl issues:
WARNING: line over 80 characters
It's probably harmless in das1800_ai_setup_dma() because the 'desc' pointer
will not be used if DMA is disabled but fix it there also.
Fixes: 99dfc3357e98 ("staging: comedi: das1800: remove depends on ISA_DMA_API limitation")
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
