ni_labpc: don't access *data when insn->n == 0
authorIan Abbott <abbotti@mev.co.uk>
Thu, 15 Dec 2011 19:55:53 +0000 (19:55 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Thu, 15 Dec 2011 19:55:53 +0000 (19:55 +0000)
commit29a1568769832fa722fd074be60a9563a8b0b678
tree386df4ee549b0d80c3e8d834edac355cce334763
parent7ca6209a564ff97db18a1672eb08e408de426726
ni_labpc: 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_labpc.c