adv_pci_dio: don't access *data when insn->n == 0
authorIan Abbott <abbotti@mev.co.uk>
Thu, 15 Dec 2011 21:07:43 +0000 (21:07 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Thu, 15 Dec 2011 21:07:43 +0000 (21:07 +0000)
commit33a1e5b61156388aaa07bf75217b266c0111f0c2
tree09ae6f34dbedd0923601cfd3c4f03cc0f3cd256b
parente576f852e8f1f35355b7586d8203386506ebe31a
adv_pci_dio: 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/adv_pci_dio.c