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