poc: don't access *data when insn->n == 0
authorIan Abbott <abbotti@mev.co.uk>
Thu, 15 Dec 2011 18:37:34 +0000 (18:37 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Thu, 15 Dec 2011 18:37:34 +0000 (18:37 +0000)
commitffd3dc2117a28ac9508df1d71f6892cbc3342d04
tree079a21769e25864738928a61ea9fff1a757d6d2f
parent2984465175f711ae14f00a2ca3ea74ae3807fb27
poc: 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/poc.c