struct usbduxfast_private {
struct urb *urb; /* BULK-transfer handling: urb */
int8_t *transfer_buffer;
- int16_t *insnBuffer; /* input buffer for single insn */
short int ai_cmd_running; /* asynchronous command is running */
short int ai_continous; /* continous acquisition */
long int ai_sample_count; /* number of samples to acquire */
if (!devpriv->dux_commands)
return -ENOMEM;
- devpriv->insnBuffer = kmalloc(SIZEINSNBUF, GFP_KERNEL);
- if (!devpriv->insnBuffer)
- return -ENOMEM;
-
ret = usb_set_interface(usb,
intf->altsetting->desc.bInterfaceNumber, 1);
if (ret < 0) {
devpriv->urb = NULL;
}
- kfree(devpriv->insnBuffer);
- devpriv->insnBuffer = NULL;
-
kfree(devpriv->dux_commands);
devpriv->dux_commands = NULL;