ni_at_ao: don't access *data when insn->n == 0
authorIan Abbott <abbotti@mev.co.uk>
Thu, 15 Dec 2011 21:04:50 +0000 (21:04 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Thu, 15 Dec 2011 21:04:50 +0000 (21:04 +0000)
commite576f852e8f1f35355b7586d8203386506ebe31a
tree1a216ea654259a34ce46a5414fb7d8c389f1ea09
parentd5c00f1c2c7442ca51806600dab6f8fe897691ab
ni_at_ao: 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_at_ao.c