ke_counter: don't access *data when insn->n == 0
authorIan Abbott <abbotti@mev.co.uk>
Thu, 15 Dec 2011 19:32:31 +0000 (19:32 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Thu, 15 Dec 2011 19:32:31 +0000 (19:32 +0000)
commitda0d83332f9719c61b16b70ecbf76253a459d280
tree08cef1acec22bb4915c4972e42084fd581b24ca6
parente82aa7b16593508432430f49e151cb3b4d68e4a5
ke_counter: 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/ke_counter.c