cb_pcidda: don't access *data when insn->n == 0
authorIan Abbott <abbotti@mev.co.uk>
Thu, 15 Dec 2011 19:44:40 +0000 (19:44 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Thu, 15 Dec 2011 19:44:40 +0000 (19:44 +0000)
commitd5ca73b470e340933602c2e69880a99010e40e65
treecf235033fd606aeeb3fe61c25c89963a2f5782de
parent028143ffc7da8a4326d6e1834be3fbcf9c8897dc
cb_pcidda: 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/cb_pcidda.c