cb_pcidas: don't access *data when insn-en == 0
authorIan Abbott <abbotti@mev.co.uk>
Thu, 15 Dec 2011 19:29:52 +0000 (19:29 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Thu, 15 Dec 2011 19:29:52 +0000 (19:29 +0000)
commite82aa7b16593508432430f49e151cb3b4d68e4a5
treed656792e1f49a9b407fc7402798e06e741db4c09
parent79ac6939202294a1707c49d386277c57568324c6
cb_pcidas: don't access *data when insn-en == 0

Due to recent change to do_insnlist_ioctl() and do_insn_ioctl(), the
'data' pointer will be NULL when insn->n == 0.  Do not access *data
in this case.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
comedi/drivers/cb_pcidas.c