diff options
| author | H Hartley Sweeten <[email protected]> | 2016-04-08 10:14:58 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2016-04-28 22:12:06 -0700 |
| commit | d375278d666760e195693b57415ba0a125cadd55 (patch) | |
| tree | 0db4405a889fee0d79333a8993e0d75db8d07088 /tools/perf/scripts/python | |
| parent | 3a56d700f60cd3cdc2c1429d107f0818555a5b22 (diff) | |
staging: comedi: das1800: fix possible NULL dereference
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")
Cc: <[email protected]> # 4.0+
Signed-off-by: H Hartley Sweeten <[email protected]>
Reviewed-by: Ian Abbott <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions