amplc_dio200: don't access *data when insn->n == 0
authorIan Abbott <abbotti@mev.co.uk>
Thu, 15 Dec 2011 20:56:11 +0000 (20:56 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Thu, 15 Dec 2011 20:56:11 +0000 (20:56 +0000)
commit0dc53f40d22adb80251f39d28a4fe8c6af785ca3
tree840da80861bc7e256c17565486fad92b67cd5868
parent19d93bf49e2e9df212a1bd09b190d8f7b9694265
amplc_dio200: 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/amplc_dio200.c