dt2801: don't access *data when insn->n == 0
authorIan Abbott <abbotti@mev.co.uk>
Thu, 15 Dec 2011 20:01:53 +0000 (20:01 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Thu, 15 Dec 2011 20:01:53 +0000 (20:01 +0000)
commit065124e1a89b0a11017291191eed09cf5bf413ec
treeb7d819dcbcf0bb72a2be9820df6e6366d089b6ac
parent29a1568769832fa722fd074be60a9563a8b0b678
dt2801: 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/dt2801.c