das1800: don't access *data when insn->bits == 0
authorIan Abbott <abbotti@mev.co.uk>
Thu, 15 Dec 2011 20:57:29 +0000 (20:57 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Thu, 15 Dec 2011 20:57:29 +0000 (20:57 +0000)
commitd081b7b8f845e39b2653c5faf8502dc1232124aa
treef428f0c7a913e71a4a258188727dbdf7dd294c12
parent0dc53f40d22adb80251f39d28a4fe8c6af785ca3
das1800: don't access *data when insn->bits == 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/das1800.c