ni_mio_common: don't access *data when insn->n == 0
authorIan Abbott <abbotti@mev.co.uk>
Thu, 15 Dec 2011 20:32:32 +0000 (20:32 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Thu, 15 Dec 2011 20:32:32 +0000 (20:32 +0000)
commit39d1bc22b367716b0a604de7b5e9c997855d153a
treeff27105ec0c35b587c81abb5c915af54a265f363
parent23813432ec7ec3681bf90f4ad2a08afd573ee9f3
ni_mio_common: 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/ni_mio_common.c