unioxx5: don't access *data when insn->n == 0
authorIan Abbott <abbotti@mev.co.uk>
Thu, 15 Dec 2011 18:31:00 +0000 (18:31 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Thu, 15 Dec 2011 18:31:00 +0000 (18:31 +0000)
commit2984465175f711ae14f00a2ca3ea74ae3807fb27
treed72afe8a64cca36d530aa4370a8a550930c7e712
parentcb4dd573e72bb5307877ae940a5747f0f16ef4d9
unioxx5: 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/unioxx5.c