Re: [PATCH 1/3] staging: comedi: das1800: fix possible NULL dereference

2016-04-11 Thread Ian Abbott
On 08/04/16 18:14, H Hartley Sweeten wrote: 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 is

[PATCH 1/3] staging: comedi: das1800: fix possible NULL dereference

2016-04-08 Thread H Hartley Sweeten
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 p