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