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>
return -EFAULT;
}
+ if (insn->n == 0)
+ return 0;
+
mutex_lock(&this_usbduxsub->mutex);
if (!(this_usbduxsub->probed)) {
return -EFAULT;
}
+ if (insn->n == 0)
+ return 0;
+
mutex_lock(&this_usbduxsub->mutex);
if (!(this_usbduxsub->probed)) {