usbdux: don't access *data when insn->n == 0
authorIan Abbott <abbotti@mev.co.uk>
Thu, 15 Dec 2011 21:01:48 +0000 (21:01 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Thu, 15 Dec 2011 21:01:48 +0000 (21:01 +0000)
commitd5c00f1c2c7442ca51806600dab6f8fe897691ab
treefcf234ca11aca64d53074c89754dafb335018928
parentd081b7b8f845e39b2653c5faf8502dc1232124aa
usbdux: 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/usbdux.c