cb_pcidas64: don't access *data when insn->n == 0
authorIan Abbott <abbotti@mev.co.uk>
Thu, 15 Dec 2011 20:51:45 +0000 (20:51 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Thu, 15 Dec 2011 20:51:45 +0000 (20:51 +0000)
commit19d93bf49e2e9df212a1bd09b190d8f7b9694265
tree0d19108a2c36c39792f4708a1acf7224550add22
parent77ebc7f8d65f976af8ba79f236061ea4361fa0cb
cb_pcidas64: don't access *data when insn->n == 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_pcidas64.c